ceph-ansible/infrastructure-playbooks
Kevin Jones b3abe23493 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 47bf47c9d8)
2019-10-01 09:10:28 -04:00
..
untested-by-ci don't use "static" field while including tasks 2018-10-04 07:44:28 +00:00
vars infrastructure playbooks: ensure nvme_device is defined in lv-create.yml 2018-10-29 08:41:42 +00:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
add-osd.yml add-osd: fix error in validate execution role 2019-06-24 14:36:18 +02:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml mon/client: remove acl code 2018-04-23 18:34:58 +02:00
gather-ceph-logs.yml remove ceph-agent role and references 2019-06-17 14:42:08 -04:00
lv-create.yml infrastructure playbooks: ensure nvme_device is defined in lv-create.yml 2018-10-29 08:41:42 +00:00
lv-teardown.yml lv-teardown: fail silently if lv_vars.yml is not found 2018-08-16 16:38:23 +02:00
purge-cluster.yml purge: ensure no ceph kernel thread is present 2019-06-24 15:36:21 +02:00
purge-docker-cluster.yml purge: ensure no ceph kernel thread is present 2019-06-24 15:36:21 +02:00
purge-iscsi-gateways.yml igw: stop tcmu-runner on iscsi purge 2018-11-09 16:50:04 +01:00
rgw-standalone.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
rolling_update.yml update: use ids to restart osds instead of device name 2019-08-13 13:42:58 +02:00
shrink-mon.yml introduce new role ceph-facts 2019-01-07 09:14:10 +01:00
shrink-osd-ceph-disk.yml shrink-osd: Stop ceph-disk container based on ID 2019-08-06 09:38:52 +02:00
shrink-osd.yml Revert "Revert "shrink_osd: use cv zap by fsid to remove parts/lvs"" 2019-05-10 09:13:10 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml Set proper ownership command performance improvement 2019-10-01 09:10:28 -04:00
take-over-existing-cluster.yml remove ceph-agent role and references 2019-06-17 14:42:08 -04:00

README.md

Infrastructure playbooks

This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.

To use them, you must move them to ceph-ansible's root directory, then run using ansible-playbook <playbook>.