From 101c8d24810dd960483b0657ddbfa2c9aef2099f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 7 Jan 2015 16:06:14 +0000 Subject: [PATCH] Add zmq_reconnect_ivl options for fedmsg. This should reduce CPU load on some of our machines, like pkgs01. --- roles/fedmsg/base/templates/base.py.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/fedmsg/base/templates/base.py.j2 b/roles/fedmsg/base/templates/base.py.j2 index b658188b19..cec5fe9a01 100644 --- a/roles/fedmsg/base/templates/base.py.j2 +++ b/roles/fedmsg/base/templates/base.py.j2 @@ -63,6 +63,12 @@ config = dict( zmq_tcp_keepalive_cnt=3, zmq_tcp_keepalive_idle=60, zmq_tcp_keepalive_intvl=5, + + # See the following + # - https://github.com/fedora-infra/fedmsg/issues/305 + # - http://api.zeromq.org/3-2:zmq-setsockopt + zmq_reconnect_ivl=100, + zmq_reconnect_ivl_max=1000, ) # This option adds an IPC socket by which we can monitor hub health.