# This script is called by rabbitmq-server-ha.ocf during RabbitMQ
# cluster start up. It is a convenient place to set your cluster
# policy here, for example:
# ${OCF_RESKEY_ctl} set_policy ha-all "." '{"ha-mode":"all", "ha-sync-mode":"automatic"}' --apply-to all --priority 0

# Enable ha-policy with the replica factor of 5 for jepsen queues
ocf_log info "${LH} Setting HA policy for all queues"
#${OCF_RESKEY_ctl} set_policy ha-all "jepsen." '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'

# This script is called by rabbitmq-server-ha.ocf during RabbitMQ
# cluster start up. It is a convenient place to set your cluster
# policy here, for example:
# ${OCF_RESKEY_ctl} set_policy ha-all "." '{"ha-mode":"all", "ha-sync-mode":"automatic", "ha-sync-batch-size":10000}'

# Enable ha-policy with the replica factor of 5 for jepsen queues
ocf_log info "${LH} Setting HA policy for all queues"
#${OCF_RESKEY_ctl} set_policy ha-all "jepsen." '{"ha-mode":"exactly", "ha-params":5, "ha-sync-mode":"automatic"}'

Add policy example for ha-sync-batch-size
Add policy example for ha-sync-batch-size

Signed-off-by: Bogdan Dobrelya <0b23cd1e586d5f091fecb3391314c2b9ec1fd641@mirantis.com>
