Ask Your Question
0

How to set transport_url properly to use ha rabbitmq cluster?

asked 2016-12-05 09:01:03 -0500

Alexander Sushko gravatar image

updated 2016-12-06 14:54:18 -0500

rbowen gravatar image

Hi!

In ha-guide it is said that the proper way of using ha rabbitmq cluster is to set rabbit_hosts and other rabbit_* options. But in config references and in config`s comments it is said that

# DEPRECATED: RabbitMQ HA cluster host:port pairs. (list value)
# Deprecated group;name - DEFAULT;rabbit_hosts
# This option is deprecated for removal.
# Its value may be silently ignored in the future.
# Reason: Replaced by DEFAULT;transport_url
#rabbit_hosts=$rabbit_host:$rabbit_port

As you can see the rabbit_hosts option is still usable but deprecated. And transport_url options should be used instead. But according to url standard I can specify one host in url only. So, the question. How to configure openstack services to use ha rabbitmq cluster and not to use deprecated config options at the same time?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-02 19:55:30 -0500

v gravatar image

From documentation for oslo_messaging class TransportURL

Transport URLs take the form::

      transport://user:pass@host:port[,userN:passN@hostN:portN]/virtual_host?query

    i.e. the scheme selects the transport driver, you may include multiple
    hosts in netloc, the path part is a "virtual host" partition path and
    the query part contains some driver-specific options which may override
    corresponding values from a static configuration.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-12-05 09:01:03 -0500

Seen: 993 times

Last updated: Dec 06 '16