ceph-ansible/roles/ceph-handler/templates
Dimitri Savineau 69b51b5f19 monitor: use quorum_status instead of ceph status
The ceph status command returns a lot of information stored in variables
and/or facts which could consume resources for nothing.
When checking the quorum status, we're only using the quorum_names
structure in the ceph status output.
To optimize this, we could use the ceph quorum_status command which contains
the same needed information.
This command returns less information.

$ ceph status -f json  | wc -c
2001
$ ceph quorum_status -f json  | wc -c
957
$ time ceph status -f json > /dev/null

real	0m0.577s
user	0m0.538s
sys	0m0.029s
$ time ceph quorum_status -f json > /dev/null

real	0m0.544s
user	0m0.527s
sys	0m0.016s

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 88f91d8c12)
2020-11-03 14:38:49 -05:00
..
restart_mds_daemon.sh.j2 Add new container scenario 2018-11-27 16:47:40 +00:00
restart_mgr_daemon.sh.j2 Add new container scenario 2018-11-27 16:47:40 +00:00
restart_mon_daemon.sh.j2 monitor: use quorum_status instead of ceph status 2020-11-03 14:38:49 -05:00
restart_nfs_daemon.sh.j2 Look for additional names when checking ceph-nfs container status 2019-09-09 16:48:50 -04:00
restart_osd_daemon.sh.j2 common: support OSDs with more than 2 digits 2020-02-28 11:06:47 -05:00
restart_rbd_mirror_daemon.sh.j2 Add new container scenario 2018-11-27 16:47:40 +00:00
restart_rgw_daemon.sh.j2 ceph-handler: fix curl ipv6 command with rgw 2020-11-02 17:44:22 -05:00