From 5e52d89e943078c73dfd0bd0caceb7bcb8f9d7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 10 Nov 2014 14:13:31 +0100 Subject: [PATCH] Increase kernel.pid_max to a higher value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While running big boxes with 72 disks it's easy to get out of PID for all the threads needed by Ceph. Increasing the default value removes this limitation. Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index 4d23e76a0..c358fe75e 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -36,3 +36,6 @@ - name: Disable OSD directory parsing by updatedb command: updatedb -e /var/lib/ceph ignore_errors: true + +- name: Increase PID max value to a very large value + sysctl: name="kernel.pid_max" value=4194303 state=present sysctl_file=/etc/sysctl.conf