summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-09-13 16:12:41 -0400
committerRussell Bryant <rbryant@redhat.com>2012-09-13 19:11:07 -0400
commit1a9d5c8df5aeee4faf99b54800566e386166836d (patch)
tree1efe711ec5e8d66c919c77966ad88ec3566d3a10 /openstack
parentccaaa26dd3afa62599ea3b476e2a5d1af7e075ef (diff)
downloadoslo-1a9d5c8df5aeee4faf99b54800566e386166836d.tar.gz
oslo-1a9d5c8df5aeee4faf99b54800566e386166836d.tar.xz
oslo-1a9d5c8df5aeee4faf99b54800566e386166836d.zip
Change the qpid_heartbeat default to 60 seconds.
The heartbeat option enables sending a message at the AMQP layer at a regular interval. This helps ensure that the connection is still up and working. Once a failure is detected, a reconnection can be attempted. The default for qpid_heartbeat was previously 5 seconds. This is pretty aggressive and can lead to invalid timeouts occuring. An example is the nova-compute service. It may block in native code (such as libvirt) under normal circumstances. When this happens, other greenthreads (such as the one responsible for sending the heartbeat) can not be scheduled. This patch makes the default a less aggressive 1 minute. Fix bug 1050661. Change-Id: Idce48944050c331dda85e9b10ab6f5b025845c34
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rpc/impl_qpid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/impl_qpid.py b/openstack/common/rpc/impl_qpid.py
index 93d771c..324d962 100644
--- a/openstack/common/rpc/impl_qpid.py
+++ b/openstack/common/rpc/impl_qpid.py
@@ -69,7 +69,7 @@ qpid_opts = [
default=0,
help='Equivalent to setting max and min to the same value'),
cfg.IntOpt('qpid_heartbeat',
- default=5,
+ default=60,
help='Seconds between connection keepalive heartbeats'),
cfg.StrOpt('qpid_protocol',
default='tcp',