Complete the code to enable automatic network partition handling in RabbitMQ configuration.
cluster_partition_handling = [1]The autoheal setting allows RabbitMQ to automatically recover from network partitions by healing the cluster.
Complete the command to check the current cluster status in RabbitMQ.
rabbitmqctl [1]The cluster_status command shows the current status of the RabbitMQ cluster including nodes and partitions.
Fix the error in the command to force a node to forget a partitioned node.
rabbitmqctl forget_[1] rabbit@node2The correct command is rabbitmqctl forget_cluster_node rabbit@node2 to remove a partitioned node from the cluster.
Fill both blanks to configure RabbitMQ to pause minority nodes during network partitions.
cluster_partition_handling = [1] ha-mode = [2]
Setting cluster_partition_handling to pause_minority pauses nodes in the minority partition. Setting ha-mode to all replicates queues to all nodes.
Fill all three blanks to create a policy that automatically syncs mirrored queues after a network partition.
rabbitmqctl set_policy [1] "^" '{{"ha-mode": "[2]", "ha-sync-mode": "[3]"}}' --apply-to queues
The policy name is sync_all. The ha-mode is set to all to mirror queues to all nodes. The ha-sync-mode is set to automatic to sync queues automatically after partitions heal.