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.
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.
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