A memory alarm is triggered when RabbitMQ's used memory exceeds the configured memory high watermark, which is a limit set to prevent the server from running out of memory.
Click to reveal answer
beginner
What happens when a disk alarm is raised in RabbitMQ?
When a disk alarm is raised, RabbitMQ stops accepting new messages to prevent running out of disk space, ensuring stability and data integrity.
Click to reveal answer
intermediate
How can you check the current memory alarm status in RabbitMQ?
You can check the memory alarm status using the command: rabbitmqctl status or by inspecting the management UI under the node's overview section.
Click to reveal answer
intermediate
Which configuration setting controls the memory high watermark in RabbitMQ?
The memory high watermark is controlled by the setting 'vm_memory_high_watermark' in the RabbitMQ configuration file or environment variables.
Click to reveal answer
beginner
Why is it important to monitor disk space and memory usage in RabbitMQ?
Monitoring disk space and memory usage prevents RabbitMQ from crashing or losing messages by triggering alarms that stop message flow before resources are exhausted.
Click to reveal answer
What does RabbitMQ do when the memory alarm is triggered?
ARestarts the server
BDeletes old messages automatically
CStops accepting new messages
DSends an email alert only
✗ Incorrect
When memory alarm triggers, RabbitMQ stops accepting new messages to avoid running out of memory.
Which command helps check RabbitMQ's memory and disk alarm status?
Arabbitmqctl status
Brabbitmqctl list_queues
Crabbitmqctl reset
Drabbitmqctl start_app
✗ Incorrect
The 'rabbitmqctl status' command shows node status including memory and disk alarms.
What is the default action when a disk alarm is raised in RabbitMQ?
AIncrease disk space automatically
BStop accepting new messages
CDelete oldest messages
DSend a warning but continue processing
✗ Incorrect
RabbitMQ stops accepting new messages to prevent disk space exhaustion.
Which configuration parameter sets the memory limit for RabbitMQ alarms?
Aheartbeat_interval
Bdisk_free_limit
Cmax_connections
Dvm_memory_high_watermark
✗ Incorrect
'vm_memory_high_watermark' controls the memory usage limit triggering alarms.
Why should RabbitMQ administrators monitor memory and disk alarms?
ATo prevent server crashes and message loss
BTo improve message delivery speed
CTo reduce network traffic
DTo automatically backup messages
✗ Incorrect
Monitoring alarms helps avoid crashes and message loss by managing resource limits.
Explain how RabbitMQ handles memory and disk alarms and why they are important.
Think about what happens when resources run low and how RabbitMQ protects itself.
You got /4 concepts.
Describe how to check and configure memory and disk alarms in RabbitMQ.
Consider commands and config settings involved.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of memory and disk alarms in RabbitMQ?
easy
A. To increase the speed of message delivery
B. To prevent RabbitMQ from running out of memory or disk space
C. To automatically delete old messages
D. To backup RabbitMQ data to the cloud
Solution
Step 1: Understand RabbitMQ resource management
Memory and disk alarms are designed to monitor resource usage to avoid crashes.
Step 2: Identify the role of alarms
They stop RabbitMQ from accepting more messages when resources are low, protecting stability.
Final Answer:
To prevent RabbitMQ from running out of memory or disk space -> Option B
Quick Check:
Memory and disk alarms protect resources = B [OK]
Hint: Alarms stop resource exhaustion to keep RabbitMQ stable [OK]
Common Mistakes:
Thinking alarms speed up message delivery
Confusing alarms with backup features
Assuming alarms delete messages automatically
2. Which rabbitmqctl command correctly clears a memory alarm?
easy
A. rabbitmqctl clear_memory_alarm --node node@hostname
B. rabbitmqctl clear_memory_alarm node
C. rabbitmqctl clear_memory_alarm --node=node@hostname
D. rabbitmqctl clear_memory_alarm
Solution
Step 1: Recall correct syntax for clearing alarms
The command requires the node name as an argument with the --node flag.
3. What will be the output of this command if a disk alarm is active on node rabbit@server1?
rabbitmqctl -n rabbit@server1 list_alarms
medium
A. Error: node not found
B. rabbit@server1 memory
C. []
D. rabbit@server1 disk
Solution
Step 1: Understand list_alarms command output
This command lists active alarms on the specified node in table format.
Step 2: Match alarm type with output
If a disk alarm is active, the output shows rabbit@server1 disk.
Final Answer:
rabbit@server1 disk -> Option D
Quick Check:
Active disk alarm shows rabbit@server1 disk [OK]
Hint: list_alarms shows active alarms in node\talarm table format [OK]
Common Mistakes:
Confusing memory alarm output with disk alarm
Expecting empty list when alarm is active
Assuming command errors if alarm exists
4. You run rabbitmqctl clear_disk_alarm rabbit@server1 but the disk alarm remains active. What is the most likely cause?
medium
A. The disk space is still below the threshold
B. The command syntax is incorrect
C. The node name is misspelled
D. RabbitMQ service is stopped
Solution
Step 1: Understand alarm clearing conditions
Clearing a disk alarm only works if disk space is above the configured threshold.
Step 2: Analyze why alarm persists
If disk space is still low, RabbitMQ keeps the alarm active despite the clear command.
Final Answer:
The disk space is still below the threshold -> Option A
Quick Check:
Alarm clears only if resource condition is met [OK]
Hint: Clear alarms only work if resource usage is back to normal [OK]
Common Mistakes:
Assuming command syntax error without checking disk space
Ignoring node name correctness
Not verifying RabbitMQ service status
5. You want to prevent RabbitMQ from raising a memory alarm until it uses 80% of available RAM instead of the default 40%. Which configuration change achieves this?
hard
A. Run rabbitmqctl set_memory_alarm_threshold 80
B. Set disk_free_limit = 80% in rabbitmq.conf
C. Set vm_memory_high_watermark = 0.8 in rabbitmq.conf
D. Increase system swap space to 80%
Solution
Step 1: Identify memory alarm threshold setting
The vm_memory_high_watermark setting controls memory alarm threshold as a fraction.
Step 2: Apply correct value for 80%
Setting vm_memory_high_watermark = 0.8 means alarm triggers at 80% memory use.
Final Answer:
Set vm_memory_high_watermark = 0.8 in rabbitmq.conf -> Option C