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 <sebastien.han@enovance.com>
pull/108/head
Sébastien Han 2014-08-21 14:21:05 +02:00
parent e2599556b9
commit b3889c4442
2 changed files with 6 additions and 0 deletions

View 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

View 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