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
source§impl<'de> Deserialize<'de> for ClusterHealth
impl<'de> Deserialize<'de> for ClusterHealth
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more