But I really dont want to have to manually configure the application to connect to any specific node, that is bad for failover
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
root@rabbit1:/# cd ~root@rabbit1:~# lsconfig mnesia rebalance-queue-masters schemaroot@rabbit1:~# ./rebalance-queue-masters20190301-14:04:13 [INFO] Setting temporary policies on vhost: /20190301-14:04:17 [INFO] Updating queue master for queue 'name' from 'pid' to 'rabbit@rabbit3'20190301-14:04:17 [INFO] Setting policy "name-ha-temp" for pattern "^name$" to "{"ha-mode":"exactly","ha-params":1}" with priority "990" for vhost "/" ...20190301-14:04:18 [INFO] Synchronising queue 'name' in vhost '/' ...Error:not_foundroot@rabbit1:~#root@rabbit1:~# ./rebalance-queue-masters -r my.*20190301-14:05:06 [INFO] Setting temporary policies on vhost: /20190301-14:05:10 [INFO] Updating queue master for queue 'my-new-queue12345678' from 'rabbit@rabbit1' to 'rabbit@rabbit3'20190301-14:05:10 [INFO] Setting policy "my-new-queue12345678-ha-temp" for pattern "^my-new-queue12345678$" to "{"ha-mode":"exactly","ha-params":1}" with priority "990" for vhost "/" ...20190301-14:05:11 [INFO] Synchronising queue 'my-new-queue12345678' in vhost '/' ...20190301-14:05:12 [INFO] Setting policy "my-new-queue12345678-ha-temp" for pattern "^my-new-queue12345678$" to "{"ha-mode":"nodes","ha-params":["rabbit@rabbit3"]}" with priority "992" for vhost "/" ...20190301-14:05:12 [INFO] Synchronising queue 'my-new-queue12345678' in vhost '/' ...20190301-14:05:14 [INFO] Queue master successfully updated: 'rabbit@rabbit3'20190301-14:05:14 [INFO] Clearing policy "my-new-queue12345678-ha-temp" on vhost "/" ...
...
...
...ubuntu@rabbitprod1:~$ sudo rabbitmqctl delete_queue myqueue.ScanHistoryReprocessing -p prodDeleting queue 'myqueue.ScanHistoryReprocessing' on vhost 'prod' ...
Thanks Luke, some feed back on it.The default regex of .* err'd out for me on every vhost I tried. I can see it created the temp policy but then threw an exception.
These plugin worked flawless in RabbitMQ 3.7.x for me. But when using it in 3.6.10 it finishes with "no errors" all queues rebalanced. But temp HA policy are not removed and I ended up with double amount of messages per queue ( in those queues where the temporal HA policy was not removed).
I have seen similar issues though with other rebalancing tools and RabbitMQ 3.6
I don't know if that is happening only to me though. But I have the same config in RabbitMQ 3.6 and 3.7