3

I have RabbitMQ set up on a Debian server. I find myself in a situation currently whereby I need to change (or perhaps enable?) the heartbeat value for RabbitMQ. I have not been able to find any examples of how to do this via the /etc/rabbitmq/rabbitmq.config file. I took a guess of the following, which does not work:

[{rabbit,
    [{heartbeat, 30}]
}].

Does anybody know how to properly configure the heartbeat value for RabbitMQ? I'm using version 1.7.1.

Christopher Cashell
  • 8,999
  • 2
  • 31
  • 43
Ryan Duffield
  • 211
  • 2
  • 7

2 Answers2

2

As I suspected, the heartbeat is solely configured client-side. This was confirmed in #rabbitmq on Freenode IRC. The particular issues I'm having with heartbeats are related to the client-side library that I'm using.

Ryan Duffield
  • 211
  • 2
  • 7
  • 1
    Are you sure? It would seem is possible to change the default value by configuration: https://www.rabbitmq.com/configure.html (search for heartbeat there) – lloiacono Jul 03 '19 at 15:40
0

The information in the answer is no longer correct.

RabbitMQ now has configurable setting for heartbeat both from client and from the server.

The lower value is taken during connection negotiation, by default the server uses 60 seconds. They can also be disabled by setting both client and server to 0.

More info can be found here: https://www.rabbitmq.com/heartbeats.html