ceph-ansible/roles/ceph-facts/tasks
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
..
container_binary.yml facts: isolate container_binary facts 2019-12-03 09:57:11 -05:00
facts.yml rgw/rbdmirror: use service dump instead of ceph -s 2020-11-03 14:38:49 -05:00
get_def_crush_rule_name.yml osd: use default crush rule name when needed 2020-03-31 19:42:40 -04:00
grafana.yml dashboard: allow configuring multiple grafana host 2020-02-12 19:56:31 -05:00
main.yml introduce new role ceph-facts 2018-12-12 11:18:01 +01:00
set_monitor_address.yml defaults: change monitor|radosgw_address default values 2020-01-13 14:55:23 -05:00
set_radosgw_address.yml facts: fix 'set_fact rgw_instances with rgw multisite' 2020-09-18 10:35:28 -04:00