Commit d7a7fa15 by Bilal Ahmad

Merge pull request #2879 from edx/OPS-728

Increasing file descriptor limit (OPS-728)
parents 107c450a 81949e34
......@@ -56,3 +56,16 @@ locust_debian_pkgs:
- gfortran
locust_redhat_pkgs: []
# ulimit variables
ulimit_config:
- domain: '*'
type: soft
item: nofile
value: 4096
- domain: '*'
type: hard
item: nofile
value: 4096
ulimit_conf_file: "/etc/security/limits.conf"
......@@ -72,3 +72,9 @@
name={{ locust_service_name }}
when: not disable_edx_services
sudo_user: "{{ supervisor_service_user }}"
- name: increase file descriptor limit of the system (Session Logout and Login would be required)
lineinfile:
dest: "{{ ulimit_conf_file }}"
line: "{{ item.domain }} {{ item.type }} {{ item.item }} {{ item.value }}"
with_items: "{{ ulimit_config }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment