From b3889c4442d0c7621a7f1610f2804fcf491f6216 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 21 Aug 2014 14:21:05 +0200 Subject: [PATCH] Disable updatedb OSD directory parsing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-common/tasks/Debian.yml | 3 +++ roles/ceph-common/tasks/RedHat.yml | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.39.5