]> 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 08:26:47 +0000 (10:26 +0200)
commit47bf47c9d87fe057bc1402f7a1aa0a84d13b5fd0
tree1e6d0f03135f3734016ecb5688b5da00e6e03e6e
parent11aa5dbb588e69decb9fba204f20a8d021815f98
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>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml