ceph-ansible/roles
Dimitri Savineau 3bba1fd203 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:32:09 +01:00
..
ceph-client common: follow up on #5948 2020-11-03 09:43:51 +01:00
ceph-common ceph-common: remove copr and sepia repositories 2020-06-30 17:08:53 +02:00
ceph-config ceph-config: ceph.conf rendering refactor 2020-10-21 18:28:25 -04:00
ceph-container-common container: quote registry password 2020-09-18 14:25:44 -04:00
ceph-container-engine container: add optional http(s) proxy option 2020-09-16 11:32:14 -04:00
ceph-crash podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-dashboard library: add radosgw_user module 2020-10-06 15:00:17 +02:00
ceph-defaults common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
ceph-facts common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
ceph-fetch-keys common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
ceph-grafana podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-handler monitor: use quorum_status instead of ceph status 2020-11-03 14:32:09 +01:00
ceph-infra ceph-infra: include iscsi nodes for logrotate 2020-09-17 14:49:35 -04:00
ceph-iscsi-gw podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-mds podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-mgr podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-mon podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-nfs podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-node-exporter podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-osd osds: use ceph osd stat instead of ceph status 2020-11-03 14:32:09 +01:00
ceph-prometheus podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-rbd-mirror podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-rgw podman: force log driver to journald 2020-11-02 17:46:39 -05:00
ceph-rgw-loadbalancer Enable HAProxy backend checks for Ceph RGW 2020-09-02 09:54:52 -04:00
ceph-validate ceph_key: remove backward compatibility 2020-10-06 10:09:16 +02:00