Module rust_corosync::votequorum
source · Expand description
votequorum is the main quorum provider for corosync, using this API, users can query the state of nodes in the cluster, request callbacks when the nodelists change, and set up a quorum device.
Structs
Callbacks that can be called from votequorum, pass these in to initialize
A handle into the votequorum library. Returned from initialize and needed for all other calls
Flags in the NodeInfo struct
RingId returned by votequorum_notification_fn
Enums
Functions
Get the current ‘context’ value for this handle.
The context value is an arbitrary value that is always passed
back to callbacks to help identify the source
Set the current ‘context’ value for this handle.
The context value is an arbitrary value that is always passed
back to callbacks to help identify the source.
Normally this is set in trackstart, but this allows it to be changed
Call any/all active votequorum callbacks for this Handle. see DispatchFlags for details
Return a file descriptor to use for poll/select on the VOTEQUORUM handle
Finish with a connection to corosync
Allow qdevice to tell votequorum if master_wins can be enabled or not
Poll a quorum device
This must be done more often than the qdevice timeout (default 10s) while the device is active
and the RingId must match the current value returned from the callbacks for it to be accepted.
Register a quorum device
Unregister a quorum device
Update the name of a quorum device
Set the current expected_votes for the cluster, this value must
be valid and not result in an inquorate cluster.
Set the current votes for a node
Track node and votequorum changes
Stop tracking node and votequorum changes