summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/__init__.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-06-06 21:22:40 -0400
committerRussell Bryant <rbryant@redhat.com>2012-06-11 11:25:20 -0400
commit4bfe5a40a523df45dffc128de2f263eedb51c2e8 (patch)
treee182e1942ab65a451a2beed01fd252363c277020 /openstack/common/rpc/__init__.py
parent2d4e7b3177f658a2437297f9495211d0075480b0 (diff)
downloadoslo-4bfe5a40a523df45dffc128de2f263eedb51c2e8.tar.gz
oslo-4bfe5a40a523df45dffc128de2f263eedb51c2e8.tar.xz
oslo-4bfe5a40a523df45dffc128de2f263eedb51c2e8.zip
Add impl_zmq to rpc.
Part of blueprint common-rpc. This driver just went into nova.rpc. Pull it in over here. I haven't been able to test this, but I can't get the tests to work in nova, either. There is a bit of a complication with impl_zmq worth mentioning. It requires a service to run (nova/bin/nova-rpc-zmq-receiver). Only once instance of this service should run on a given machine, so it shouldn't be copied into each project that uses rpc. Once openstack-common is an installed library, it can be distributed with that, but until then ... we'll just leave it in nova for now. Change-Id: I2bd067be58d943d4f3a90e013b22282217484872
Diffstat (limited to 'openstack/common/rpc/__init__.py')
-rw-r--r--openstack/common/rpc/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack/common/rpc/__init__.py b/openstack/common/rpc/__init__.py
index 116aa84..26bd048 100644
--- a/openstack/common/rpc/__init__.py
+++ b/openstack/common/rpc/__init__.py
@@ -42,6 +42,10 @@ rpc_opts = [
cfg.IntOpt('rpc_response_timeout',
default=60,
help='Seconds to wait for a response from call or multicall'),
+ cfg.IntOpt('rpc_cast_timeout',
+ default=30,
+ help='Seconds to wait before a cast expires (TTL). '
+ 'Only supported by impl_zmq.'),
cfg.ListOpt('allowed_rpc_exception_modules',
default=['openstack.common.exception', 'nova.exception'],
help='Modules of exceptions that are permitted to be recreated'