From: Sébastien Han Date: Thu, 21 Aug 2014 12:21:05 +0000 (+0200) Subject: Disable updatedb OSD directory parsing X-Git-Tag: v1.0.0~335^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b3889c4442d0c7621a7f1610f2804fcf491f6216;p=ceph-ansible.git Disable updatedb OSD directory parsing 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 --- diff --git a/roles/ceph-common/tasks/Debian.yml b/roles/ceph-common/tasks/Debian.yml index f1a95b280..c4ceaf353 100644 --- a/roles/ceph-common/tasks/Debian.yml +++ b/roles/ceph-common/tasks/Debian.yml @@ -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 diff --git a/roles/ceph-common/tasks/RedHat.yml b/roles/ceph-common/tasks/RedHat.yml index ba863ef44..eddcb5274 100644 --- a/roles/ceph-common/tasks/RedHat.yml +++ b/roles/ceph-common/tasks/RedHat.yml @@ -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