ceph-ansible/roles
Dimitri Savineau bcd2797d11 rgw/rbdmirror: use service dump instead of ceph -s
The ceph status command returns a lot of information stored in variables
and/or facts which could consume resources for nothing.
When checking the rgw/rbdmirror services status, we're only using the
servicmap structure in the ceph status output.
To optimize this, we could use the ceph service dump command which contains
the same needed information.
This command returns less information and is slightly faster than the ceph
status command.

$ ceph status -f json | wc -c
2001
$ ceph service dump -f json | wc -c
1105
$ time ceph status -f json > /dev/null

real	0m0.557s
user	0m0.516s
sys	0m0.040s
$ time ceph service dump -f json > /dev/null

real	0m0.454s
user	0m0.434s
sys	0m0.020s

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 3f9081931f)
2020-11-03 14:38:49 -05:00
..
ceph-client common: follow up on #5948 2020-11-03 09:52:42 +01:00
ceph-common Add CentOS 8 support for rpm deployment 2020-09-10 20:38:34 -04:00
ceph-config ceph-config: remove ceph_release from ceph.conf.j2 2020-09-29 16:32:17 +02:00
ceph-container-common container: quote registry password 2020-09-18 15:21:32 -04:00
ceph-container-engine container: add optional http(s) proxy option 2020-09-16 11:32:24 -04:00
ceph-crash podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-dashboard Revert "Make 'disable ssl for dashboard task' idempotent." 2020-09-11 09:37:23 -04:00
ceph-defaults facts: refact `ceph_uid` fact 2020-09-21 13:49:03 -04:00
ceph-facts rgw/rbdmirror: use service dump instead of ceph -s 2020-11-03 14:38:49 -05:00
ceph-fetch-keys meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
ceph-grafana podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-handler monitor: use quorum_status instead of ceph status 2020-11-03 14:38:49 -05:00
ceph-infra ceph-infra: include iscsi nodes for logrotate 2020-09-17 14:49:56 -04:00
ceph-iscsi-gw podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-mds podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-mgr podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-mon ceph-mon: Don't set monitor directory mode recursively 2020-11-02 18:42:31 -05:00
ceph-nfs podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-node-exporter podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-osd osds: use ceph osd stat instead of ceph status 2020-11-03 14:38:49 -05:00
ceph-prometheus podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-rbd-mirror podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-rgw podman: force log driver to journald 2020-11-02 17:46:48 -05:00
ceph-rgw-loadbalancer Enable HAProxy backend checks for Ceph RGW 2020-09-10 20:38:01 -04:00
ceph-validate ansible: bump to ansible 2.9 2020-09-15 13:13:09 -04:00