From d0fcbd621946e36a9d706be31f756e6e043d2c76 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Sat, 27 Sep 2014 11:49:55 -0500 Subject: [PATCH] added open file limits to rabbitmq --- rpc_deployment/roles/rabbit_common/tasks/main.yml | 7 +++++-- .../roles/rabbit_common/templates/rabbitmq-server | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 rpc_deployment/roles/rabbit_common/templates/rabbitmq-server diff --git a/rpc_deployment/roles/rabbit_common/tasks/main.yml b/rpc_deployment/roles/rabbit_common/tasks/main.yml index d17e614047..8c2ad39759 100644 --- a/rpc_deployment/roles/rabbit_common/tasks/main.yml +++ b/rpc_deployment/roles/rabbit_common/tasks/main.yml @@ -67,8 +67,11 @@ - name: Create rabbitmq config template: - src: rabbitmq.config - dest: /etc/rabbitmq/rabbitmq.config + src: "{{ item.src }}" + dest: "{{ item.dest }}" + with_items: + - { src: "rabbitmq.config", dest: "/etc/rabbitmq/rabbitmq.config" } + - { src: "rabbitmq-server", dest: "/etc/default/rabbitmq-server" } tags: - rabbit_config diff --git a/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server b/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server new file mode 100644 index 0000000000..1f0e735045 --- /dev/null +++ b/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server @@ -0,0 +1,2 @@ +# Sets open file limit for RabbitMQ +ulimit -n 4096