Advertisement
Guest User

ha-all-exchanges-only

a guest
May 23rd, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1.  
  2.  
  3. root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
  4. cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662
  5. root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
  6. cinder-scheduler_fanout
  7.  
  8. (set ha-all for an exchange only)
  9. root@node-1:~# rabbitmqctl set_policy ha-all "cinder-scheduler_fanout" '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'
  10. Setting policy "ha-all" for pattern "cinder-scheduler_fanout" to "{\"ha-mode\":\"exactly\", \"ha-params\":5, \"ha-sync-mode\":\"automatic\"}" with priority "0" ...
  11. root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
  12. cinder-scheduler_fanout ha-all
  13.  
  14. (but it was set ha-all to related queue as well)
  15. root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
  16. cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662 ha-all
  17.  
  18. (unset for a queue-only)
  19. root@node-1:~# rabbitmqctl set_policy ha-none "cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662" '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'
  20. Setting policy "ha-none" for pattern "cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662" to "{\"ha-mode\":\"exactly\", \"ha-params\":5, \"ha-sync-mode\":\"automatic\"}" with priority "0" ...
  21. root@node-1:~# rabbitmqctl list_queues name policy | grep cinder-scheduler_fanout
  22. cinder-scheduler_fanout_73a24f26bba043c885e9c191e10e3662 ha-none
  23. root@node-1:~# rabbitmqctl list_exchanges name policy | grep cinder-scheduler_fanout
  24. cinder-scheduler_fanout ha-all
  25. (now we have only the exchange to be synced across nodes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement