]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: Add ulimit nofile on container start
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 6 Aug 2019 15:52:59 +0000 (11:52 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 22 Aug 2019 22:50:17 +0000 (22:50 +0000)
commit500c59c6485beeafafda1244fcf2bc6ca12ea771
tree3c7e73887e5b26db06b2a572ccf0448e1ad63956
parentc7950d5539fd90a1e6613213c29ccac12501320d
ceph-osd: Add ulimit nofile on container start

On containerized deployment, the OSD entrypoint runs some ceph-volume
commands (lvm/simple scan and/or activate) which perform badly without
the ulimit option.
This option was added for all previous ceph-volume commands but not on
the ceph-osd container startup.
Also updating hard limit value to 4096 to reflect default baremetal
value.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 9a4ac46d1977726c6e9b0ce8e4f051f15ce2ca12)
library/ceph_volume.py
library/test_ceph_volume.py
roles/ceph-osd/tasks/start_osds.yml
roles/ceph-osd/templates/ceph-osd-run.sh.j2