ha-sync-batch-size not recognised policy settings

462 views
Skip to first unread message

Michael Norton-Lindsay

unread,
Jun 16, 2020, 7:55:08 PM6/16/20
to rabbitmq-users
Attempting to configure an rmq cluster and receiving the following error:

[{<<"ha-sync-batch-size">>,<<"25000">>}] are not recognised policy settings

There do not appear to be any prerequisites to setting this value.  Any ideas why this is failing validation?


```
test (hsrmq) vagrant@hsrmq1:~$ sudo rabbitmqctl clear_policy -p test ha-all
Clearing policy "ha-all" ...
Error: Parameter does not exist
test (hsrmq) vagrant@hsrmq1:~$ sudo rabbitmqctl set_policy -p test ha-all '.*' '{ "ha-mode": "all", "ha-sync-mode": "automatic" }'
Setting policy "ha-all" for pattern ".*" to "{ \"ha-mode\": \"all\", \"ha-sync-mode\": \"automatic\" }" with priority "0" ...
test (hsrmq) vagrant@hsrmq1:~$ sudo rabbitmqctl list_policies -p test
Listing policies ...
test ha-all all .* {"ha-mode":"all","ha-sync-mode":"automatic"} 0
test (hsrmq) vagrant@hsrmq1:~$ sudo rabbitmqctl clear_policy -p test ha-all
Clearing policy "ha-all" ...
test (hsrmq) vagrant@hsrmq1:~$ sudo rabbitmqctl set_policy -p test ha-all '.*' '{ "ha-mode": "all", "ha-sync-mode": "automatic", "ha-sync-batch-size": "25000" }'
Setting policy "ha-all" for pattern ".*" to "{ \"ha-mode\": \"all\", \"ha-sync-mode\": \"automatic\", \"ha-sync-batch-size\": \"25000\" }" with priority "0" ...
Error: Validation failed

[{<<"ha-sync-batch-size">>,<<"25000">>}] are not recognised policy settings
```
 This is rabbitmq version "3.5.7"

TIA,
 - michael
rabbitmqctl_status.txt

Wesley Peng

unread,
Jun 16, 2020, 9:18:46 PM6/16/20
to rabbitm...@googlegroups.com
3.5.7 is far away out of support, please use the latest version as possible as you can.

Regards 

--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/0f4e01b6-016d-417f-982e-1746e91dcb42o%40googlegroups.com.

michael...@dropbox.com

unread,
Jun 24, 2020, 8:30:56 PM6/24/20
to rabbitmq-users
It is, isn't it :)  I've upgraded and things are fine now.  TY
Reply all
Reply to author
Forward
0 new messages