The most efficient way of getting corosync facts about nodes/quorum is
to use the votequorum API.
see /usr/include/corosync/votequorum.h
and in the corosync sources tarball tests/testvotequorum1.c
CHrissie
On 25/02/2021 07:16, Ulrich Windl wrote:
Hi!
I'm thinking about some simple cluster status display that is updated
periodically.
I wonder how to get some "cluster facts" efficiently. Among those are:
* Is corosync running, and how many nodes can be seen?
* Is Pacemaker running, how many nodes does it see, and does it have a quorum?
* Is the current node DC?
* How many resources matching some regular expression are running?
Regards,
Ulrich
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/