Raise the file limit on the RabbitMQ cluster

RabbitMQ recommends[0] that the open file descriptor limit be set to a
minimum of 50K. It recommends that the maximum number of open
connections be multiplied by 2 and added to the total number of queues.
Finally, it suggests that 500K isn't an unreasonable setting. This sets
the default to 500K and makes the value configurable.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
This commit is contained in:
Jeremy Cline 2018-09-12 12:23:10 -04:00 committed by Jeremy Cline
parent 22537b5a90
commit e8b13a2fa4
3 changed files with 26 additions and 0 deletions

View file

@ -78,6 +78,24 @@
- rabbitmq_cluster
- config
- name: Create RabbitMQ systemd override directory
file:
path: /etc/systemd/system/rabbitmq-server.service.d/
state: directory
tags:
- rabbitmq_cluster
- config
- name: Override file limit on rabbitmq
copy:
content: "[Service]\nLimitNOFILE={{rabbitmq_cluster_file_limit}}\n"
dest: /etc/systemd/system/rabbitmq-server.service.d/override.conf
notify:
- restart rabbitmq
tags:
- rabbitmq_cluster
- config
- name: start rabbitmq
service: name=rabbitmq-server state=started enabled=yes
tags: