ceph-ansible/roles/ceph-handler
Dimitri Savineau 88f91d8c12 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>
2020-11-03 09:05:33 +01:00
..
handlers ceph-handler: remove iscsigws restart scripts 2020-07-23 17:02:12 +02:00
meta meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
tasks handler: refact check_socket_non_container 2020-10-08 17:37:50 -04:00
templates monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
LICENSE add ceph-handler role 2018-09-28 15:15:49 +00:00
README.md add ceph-handler role 2018-09-28 15:15:49 +00:00

README.md

Ansible role: ceph-handler

Documentation is available at http://docs.ceph.com/ceph-ansible/.