ceph-ansible/roles
Dimitri Savineau 3f9081931f 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>
2020-11-03 09:05:33 +01:00
..
ceph-client common: follow up on #5948 2020-11-02 20:16:36 -05:00
ceph-common add missing boolean filter 2020-09-28 20:45:01 +02:00
ceph-config ceph-config: ceph.conf rendering refactor 2020-10-21 13:22:16 +02:00
ceph-container-common container: quote registry password 2020-09-18 11:14:00 -04:00
ceph-container-engine container: remove container_binding_name variable 2020-10-14 10:32:31 +02:00
ceph-crash keyring: use ceph_key module for auth get command 2020-11-02 17:17:29 +01:00
ceph-dashboard library: add radosgw_user module 2020-10-06 10:07:58 +02:00
ceph-defaults common: drop `fetch_directory` feature 2020-10-21 13:22:16 +02:00
ceph-facts rgw/rbdmirror: use service dump instead of ceph -s 2020-11-03 09:05:33 +01:00
ceph-fetch-keys common: drop `fetch_directory` feature 2020-10-21 13:22:16 +02:00
ceph-grafana podman: force log driver to journald 2020-11-02 15:49:27 +01:00
ceph-handler monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
ceph-infra defaults: change default grafana-server name 2020-09-29 07:42:26 +02:00
ceph-iscsi-gw keyring: use ceph_key module for auth get command 2020-11-02 17:17:29 +01:00
ceph-mds keyring: use ceph_key module for get-or-create cmd 2020-11-02 17:17:29 +01:00
ceph-mgr keyring: use ceph_key module for auth get command 2020-11-02 17:17:29 +01:00
ceph-mon ceph-mon: Don't set monitor directory mode recursively 2020-11-02 17:36:37 +01:00
ceph-nfs keyring: use ceph_key module for get-or-create cmd 2020-11-02 17:17:29 +01:00
ceph-node-exporter podman: force log driver to journald 2020-11-02 15:49:27 +01:00
ceph-osd osds: use ceph osd stat instead of ceph status 2020-11-03 09:05:33 +01:00
ceph-prometheus podman: force log driver to journald 2020-11-02 15:49:27 +01:00
ceph-rbd-mirror keyring: use ceph_key module for get-or-create cmd 2020-11-02 17:17:29 +01:00
ceph-rgw keyring: use ceph_key module for auth get command 2020-11-02 17:17:29 +01:00
ceph-rgw-loadbalancer Enable HAProxy backend checks for Ceph RGW 2020-08-27 10:57:46 -04:00
ceph-validate ceph_key: remove backward compatibility 2020-10-06 07:59:38 +02:00