High watermark
Memory alarm
- Cause: memory exceeds
vm_memory_high_watermark. - Effect: RabbitMQ blocks producers before the operating system kills the node.
- Default:
0.4in 3.13,0.6in 4.x, as a fraction of detected RAM; use an absolute value in containers.
vm_memory_high_watermark.absolute = 4GiDisk alarm
- Cause: free data-disk space falls below
disk_free_limit. - Effect: RabbitMQ blocks producers before the disk fills and broker writes fail.
- Default: 50 MB; size the production limit from disk consumption and recovery time. The example uses 10 GB.
disk_free_limit.absolute = 10GBWhat happens
- Producers become
blockedon every cluster node. - Consumer-only connections continue draining queues, and publishing resumes after the alarm clears.
- A sustained alarm delays publishing until client operations time out or fail.
Change at runtime
rabbitmqctl set_vm_memory_high_watermark absolute "4G"
rabbitmqctl set_disk_free_limit 10GBrabbitmqctl values last until restart; persist the same values in rabbitmq.conf.
