0
0
RabbitMQdevops~30 mins

Cluster node types (disc, RAM) in RabbitMQ - Mini Project: Build & Apply

Choose your learning style9 modes available
RabbitMQ Cluster Node Types: Disc and RAM Nodes
📖 Scenario: You are setting up a RabbitMQ cluster for a small company. The cluster will have two types of nodes: disc nodes and RAM nodes. Disc nodes store data on disk and keep the cluster state, while RAM nodes keep data in memory for faster access but rely on disc nodes for persistence.Understanding how to configure these nodes helps keep the messaging system reliable and fast.
🎯 Goal: Learn how to create a RabbitMQ cluster with one disc node and one RAM node using command-line commands. You will set up the initial node, add a RAM node, and verify the cluster status.
📋 What You'll Learn
Use RabbitMQ commands to create and join cluster nodes
Configure one node as a disc node
Configure one node as a RAM node
Check cluster status to confirm node types
💡 Why This Matters
🌍 Real World
RabbitMQ clusters are used in real companies to ensure messaging systems are reliable and fast by balancing data storage and memory usage.
💼 Career
Understanding how to configure disc and RAM nodes is important for DevOps engineers managing messaging infrastructure to maintain uptime and performance.
Progress0 / 4 steps
1
Create the initial RabbitMQ disc node
Write the command to start a RabbitMQ node named rabbit@discnode as a disc node (default behavior).
RabbitMQ
Need a hint?

Use rabbitmq-server -detached -name rabbit@discnode to start the node in the background with the given name. The RabbitMQ application starts automatically.

2
Add a RAM node to the cluster
Write the commands to start a RabbitMQ node named rabbit@ramnode, stop its app, join it to the cluster as a RAM node with the disc node rabbit@discnode, and start the app. Use rabbitmqctl -n rabbit@ramnode stop_app, rabbitmqctl -n rabbit@ramnode join_cluster --ram rabbit@discnode, and rabbitmqctl -n rabbit@ramnode start_app.
RabbitMQ
Need a hint?

Start the RAM node with rabbitmq-server -detached -name rabbit@ramnode.

Stop the app on the RAM node before joining the cluster using rabbitmqctl -n rabbit@ramnode stop_app.

Join the cluster as a RAM node with rabbitmqctl -n rabbit@ramnode join_cluster --ram rabbit@discnode.

Finally, start the app on the RAM node with rabbitmqctl -n rabbit@ramnode start_app.

3
Check the cluster status to see node types
Write the command to check the cluster status on the disc node rabbit@discnode using rabbitmqctl -n rabbit@discnode cluster_status. This will show the nodes and their types (disc or RAM).
RabbitMQ
Need a hint?

Use rabbitmqctl -n rabbit@discnode cluster_status to see the cluster nodes and their types.

4
Display the cluster nodes and their types
Write the command to list all cluster nodes with their types on the disc node rabbit@discnode using rabbitmqctl -n rabbit@discnode list_cluster_nodes. This shows which nodes are disc nodes and which are RAM nodes.
RabbitMQ
Need a hint?

Use rabbitmqctl -n rabbit@discnode list_cluster_nodes to see the nodes and their types clearly.