]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Set proper ownership command performance improvement
authorKevin Jones <kevinjones@redhat.com>
Sat, 10 Aug 2019 19:44:32 +0000 (15:44 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 22 Aug 2019 10:59:58 +0000 (12:59 +0200)
commit3a8de9cc36aa0efd1096638c15207003ddf776b2
tree537c5d4526ceeea0887e4e3bd2166af17c7486dd
parent82ede0afdb313ddbe88a8e8f109076559639c5ca
Set proper ownership command performance improvement

By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

On a ceph cluster with a significant amount of directories and files in /var/lib/ceph, the file module has to run checks on ownership of all those directories and files to determine whether a change is needed.

In this case, we just want to explicitly set the ownership of all these directories and files to the ceph_uid

Added context note to all set proper ownership tasks

Signed-off-by: Kevin Jones <kevinjones@redhat.com>
(cherry picked from commit 47bf47c9d87fe057bc1402f7a1aa0a84d13b5fd0)
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml