0
0
RabbitMQdevops~10 mins

Network partitions and split-brain in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable automatic network partition handling in RabbitMQ configuration.

RabbitMQ
cluster_partition_handling = [1]
Drag options to blanks, or click blank then click option'
Aautoheal
Bstop
Cpause_minority
Dignore
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'ignore' which causes split-brain issues.
Choosing 'stop' which halts nodes instead of healing.
2fill in blank
medium

Complete the command to check the current cluster status in RabbitMQ.

RabbitMQ
rabbitmqctl [1]
Drag options to blanks, or click blank then click option'
Alist_nodes
Bcluster_status
Cstatus
Dlist_queues
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' which only shows local node info.
Using 'list_queues' which lists queues, not cluster status.
3fill in blank
hard

Fix the error in the command to force a node to forget a partitioned node.

RabbitMQ
rabbitmqctl forget_[1] rabbit@node2
Drag options to blanks, or click blank then click option'
Acluster_node
Bpartition
Ccluster
Dnode_name
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'forget_partition' which is not a valid command.
Using 'forget_cluster' which does not exist.
4fill in blank
hard

Fill both blanks to configure RabbitMQ to pause minority nodes during network partitions.

RabbitMQ
cluster_partition_handling = [1]
ha-mode = [2]
Drag options to blanks, or click blank then click option'
Apause_minority
Ball
Cexactly
Dignore
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ignore' for partition handling which causes split-brain.
Using 'exactly' for ha-mode which is incomplete without a number.
5fill in blank
hard

Fill all three blanks to create a policy that automatically syncs mirrored queues after a network partition.

RabbitMQ
rabbitmqctl set_policy [1] "^" '{{"ha-mode": "[2]", "ha-sync-mode": "[3]"}}' --apply-to queues
Drag options to blanks, or click blank then click option'
Async_all
Ball
Cautomatic
Dpause_minority
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pause_minority' as ha-sync-mode which is invalid.
Using 'manual' instead of 'automatic' for ha-sync-mode.