生产环境配置注意点
Memory
rabbitMQ默认不接受新的message当内存使用量超过系统的40%, 默认配置:
{vm_memory_high_watermark, 0.4}
vm_memory_high_watermark
的区间为: 0.40 to 0.66
Disk Space
disk_free_limit
默认为50MB, 当系统硬盘空间低于这个值时, 就会导致节点失败数据丢失; 推荐配置如下:
mem_relative: 相对于内容的倍数
- {disk_free_limit, {mem_relative, 1.0}} is the minimum recommended value
- {disk_free_limit, {mem_relative, 1.5}} is a safer production value.
- {disk_free_limit, {mem_relative, 2.0}} is the most conservative. production value.
Open File Handles Limit
Make sure your environment allows for at least ==50K== open file descriptors for effective RabbitMQ user, including in development environments.
网友评论