0
0
RabbitMQdevops~15 mins

Memory and disk alarms in RabbitMQ - Mini Project: Build & Apply

Choose your learning style9 modes available
Memory and Disk Alarms in RabbitMQ
📖 Scenario: You are managing a RabbitMQ server that handles messages for a small online store. To keep the server healthy, you want to set up alarms that notify you when memory or disk space usage is too high.
🎯 Goal: Learn how to configure memory and disk alarms in RabbitMQ to prevent server overload and ensure smooth message processing.
📋 What You'll Learn
Create a RabbitMQ configuration dictionary with default settings
Add memory alarm threshold configuration
Add disk alarm threshold configuration
Print the final configuration dictionary
💡 Why This Matters
🌍 Real World
Setting memory and disk alarms helps prevent RabbitMQ servers from crashing due to resource exhaustion, keeping message processing reliable.
💼 Career
DevOps engineers often configure such alarms to maintain system stability and avoid downtime in production environments.
Progress0 / 4 steps
1
Create the initial RabbitMQ configuration dictionary
Create a dictionary called rabbitmq_config with a key default_user set to "guest" and a key default_pass set to "guest".
RabbitMQ
Need a hint?

Use curly braces {} to create a dictionary and add the keys with their exact string values.

2
Add memory alarm threshold configuration
Add a key memory_alarm to rabbitmq_config with the value "40MB" to set the memory alarm threshold.
RabbitMQ
Need a hint?

Add the new key and value inside the dictionary with a comma after the previous entry.

3
Add disk alarm threshold configuration
Add a key disk_alarm to rabbitmq_config with the value "1GB" to set the disk alarm threshold.
RabbitMQ
Need a hint?

Remember to add a comma after the previous key-value pair before adding the new one.

4
Print the final RabbitMQ configuration
Write a print statement to display the rabbitmq_config dictionary.
RabbitMQ
Need a hint?

Use print(rabbitmq_config) to show the dictionary on the screen.