Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662
- root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout
- (set ha-all for an exchange only)
- root@node-1:~# rabbitmqctl set_policy ha-all "cinder-scheduler_fanout" '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'
- Setting policy "ha-all" for pattern "cinder-scheduler_fanout" to "{\"ha-mode\":\"exactly\", \"ha-params\":5, \"ha-sync-mode\":\"automatic\"}" with priority "0" ...
- root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout ha-all
- (but it was set ha-all to related queue as well)
- root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662 ha-all
- (unset for a queue-only)
- root@node-1:~# rabbitmqctl set_policy ha-none "cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662" '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'
- Setting policy "ha-none" for pattern "cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662" to "{\"ha-mode\":\"exactly\", \"ha-params\":5, \"ha-sync-mode\":\"automatic\"}" with priority "0" ...
- root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662 ha-none
- root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
- cinder-scheduler_fanout ha-all
- (now we have only the exchange to be synced across nodes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement