Struct garage_rpc::system::ClusterHealth
source · pub struct ClusterHealth {
pub status: ClusterHealthStatus,
pub known_nodes: usize,
pub connected_nodes: usize,
pub storage_nodes: usize,
pub storage_nodes_ok: usize,
pub partitions: usize,
pub partitions_quorum: usize,
pub partitions_all_ok: usize,
}
Fields§
§status: ClusterHealthStatus
The current health status of the cluster (see below)
known_nodes: usize
Number of nodes already seen once in the cluster
connected_nodes: usize
Number of nodes currently connected
storage_nodes: usize
Number of storage nodes declared in the current layout
storage_nodes_ok: usize
Number of storage nodes currently connected
partitions: usize
Number of partitions in the layout
partitions_quorum: usize
Number of partitions for which we have a quorum of connected nodes
partitions_all_ok: usize
Number of partitions for which all storage nodes are connected
Trait Implementations§
source§impl Clone for ClusterHealth
impl Clone for ClusterHealth
source§fn clone(&self) -> ClusterHealth
fn clone(&self) -> ClusterHealth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClusterHealth
impl Debug for ClusterHealth
impl Copy for ClusterHealth
Auto Trait Implementations§
impl Freeze for ClusterHealth
impl RefUnwindSafe for ClusterHealth
impl Send for ClusterHealth
impl Sync for ClusterHealth
impl Unpin for ClusterHealth
impl UnwindSafe for ClusterHealth
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more