Note
This feature is available starting from the MCP 2019.2.15 maintenance update. Before using the feature, follow the steps described in Apply maintenance updates.
Mirroring policy enables RabbitMQ to mirror the queues content to an additional RabbitMQ node in the RabbitMQ cluster. Such approach reduces failures during the RabbitMQ cluster recovery.
Warning
To enable queue mirroring:
Open your project Git repository with the Reclass model on the cluster level.
In <cluster_name>/openstack/message_queue.yml
, specify
ha_exactly_ttl_120
in classes
:
classes:
...
- system.rabbitmq.server.vhost.openstack
- system.rabbitmq.server.vhost.openstack.without_rpc_ha
- system.rabbitmq.server.vhost.openstack.ha_exactly_ttl_120
...
Log in to the Salt Master node.
Apply the rabbitmq.server
state:
salt -C 'I@rabbitmq:server and *01*' state.sls rabbitmq.server