diff options
author | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-05-06 23:47:29 +0800 |
---|---|---|
committer | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-05-06 23:47:29 +0800 |
commit | aa8c224779680a26e3a5c1f6687599b3380e89ab (patch) | |
tree | 7cba901ceb84d63561ac5615dd4fa538a3ce01c6 /ceilometer/notification.py | |
parent | 86e36a44e289d2f5371d5223f523ed590fab3b12 (diff) | |
download | ceilometer-aa8c224779680a26e3a5c1f6687599b3380e89ab.tar.gz |
update help string for messaging_urls
We have come across problem when we follow the example of
messaging_urls, the credentials for multiple hosts fall back to
default except the first host. This patch updates this option's
help string to make it clear and right.
1. change 'transport' to 'rabbit' in example
transport is a term in oslo.messaging, it is not a real type of
oslo.messaging driver, as for an example, we should use a real
one.
2. add credentials for each node
when there are multiple nodes specified in url, each node should
have its own credentials, oslo.messaging doesn't support using
first one for all.[1]
3. add explaination for the usage scenario
normally, there is no need to set the messaging_urls, it is
useful when we have dedicate messaging nodes for each service.
[1]: http://docs.openstack.org/developer/oslo.messaging/transport.html#oslo_messaging.TransportURL.parse
Change-Id: If077a4b16a292be740aa72329fcda8c7a3973dc7
Diffstat (limited to 'ceilometer/notification.py')
-rw-r--r-- | ceilometer/notification.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ceilometer/notification.py b/ceilometer/notification.py index 108dd996..22aa802d 100644 --- a/ceilometer/notification.py +++ b/ceilometer/notification.py @@ -65,9 +65,13 @@ OPTS = [ default=[], secret=True, help="Messaging URLs to listen for notifications. " - "Example: transport://user:pass@host1:port" - "[,hostN:portN]/virtual_host " - "(DEFAULT/transport_url is used if empty)"), + "Example: rabbit://user:pass@host1:port1" + "[,user:pass@hostN:portN]/virtual_host " + "(DEFAULT/transport_url is used if empty). This " + "is useful when you have dedicate messaging nodes " + "for each service, for example, all nova " + "notifications go to rabbit-nova:5672, while all " + "cinder notifications go to rabbit-cinder:5672."), cfg.IntOpt('batch_size', default=1, help='Number of notification messages to wait before ' |