]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Disable updatedb OSD directory parsing 108/head
authorSébastien Han <sebastien.han@enovance.com>
Thu, 21 Aug 2014 12:21:05 +0000 (14:21 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Thu, 21 Aug 2014 12:21:05 +0000 (14:21 +0200)
It has been reported a couple of months ago by Dan van der Ster from
CERN that updatedb was consumming 100% of CPU while parsing system's
directories. Indeed the process was parsing the OSD PG directories that
might contains billions of objects.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/ceph-common/tasks/Debian.yml
roles/ceph-common/tasks/RedHat.yml

index f1a95b280166f449cf780f9650b65cb4cd9c4aed..c4ceaf353e54eb3d6dce1874d0d5e238767b551e 100644 (file)
@@ -45,3 +45,6 @@
 - name: Generate Ceph configuration file
   template: src=ceph.conf.j2 dest=/etc/ceph/ceph.conf owner=root group=root mode=0644
   notify: restart ceph
+
+- name: Disable OSD directory parsing by updatedb
+  command: updatedb -e /var/lib/ceph
index ba863ef4443e669157c1512facae6028f03fb037..eddcb52743db620f808221565399611f31ded568 100644 (file)
@@ -38,3 +38,6 @@
 - name: Generate Ceph configuration file
   template: src=ceph.conf.j2 dest=/etc/ceph/ceph.conf owner=root group=root mode=0644
   notify: restart ceph
+
+- name: Disable OSD directory parsing by updatedb
+  command: updatedb -e /var/lib/ceph