Struct rustis::commands::ClusterInfo

source ·
pub struct ClusterInfo {
Show 34 fields pub cluster_state: ClusterState, pub cluster_slots_assigned: usize, pub cluster_slots_ok: usize, pub cluster_slots_pfail: usize, pub cluster_slots_fail: usize, pub cluster_known_nodes: usize, pub cluster_size: usize, pub cluster_current_epoch: usize, pub cluster_my_epoch: u64, pub cluster_stats_messages_sent: usize, pub cluster_stats_messages_received: usize, pub total_cluster_links_buffer_limit_exceeded: usize, pub cluster_stats_messages_ping_sent: usize, pub cluster_stats_messages_ping_received: usize, pub cluster_stats_messages_pong_sent: usize, pub cluster_stats_messages_pong_received: usize, pub cluster_stats_messages_meet_sent: usize, pub cluster_stats_messages_meet_received: usize, pub cluster_stats_messages_fail_sent: usize, pub cluster_stats_messages_fail_received: usize, pub cluster_stats_messages_publish_sent: usize, pub cluster_stats_messages_publish_received: usize, pub cluster_stats_messages_auth_req_sent: usize, pub cluster_stats_messages_auth_req_received: usize, pub cluster_stats_messages_auth_ack_sent: usize, pub cluster_stats_messages_auth_ack_received: usize, pub cluster_stats_messages_update_sent: usize, pub cluster_stats_messages_update_received: usize, pub cluster_stats_messages_mfstart_sent: usize, pub cluster_stats_messages_mfstart_received: usize, pub cluster_stats_messages_module_sent: usize, pub cluster_stats_messages_module_received: usize, pub cluster_stats_messages_publishshard_sent: usize, pub cluster_stats_messages_publishshard_received: usize,
}
Expand description

Result for the cluster_info command

Fields§

§cluster_state: ClusterState

State is ok if the node is able to receive queries. fail if there is at least one hash slot which is unbound (no node associated), in error state (node serving it is flagged with FAIL flag), or if the majority of masters can’t be reached by this node.

§cluster_slots_assigned: usize

Number of slots which are associated to some node (not unbound). This number should be 16384 for the node to work properly, which means that each hash slot should be mapped to a node.

§cluster_slots_ok: usize

Number of hash slots mapping to a node not in FAIL or PFAIL state.

§cluster_slots_pfail: usize

Number of hash slots mapping to a node in PFAIL state. Note that those hash slots still work correctly, as long as the PFAIL state is not promoted to FAIL by the failure detection algorithm. PFAIL only means that we are currently not able to talk with the node, but may be just a transient error.

§cluster_slots_fail: usize

Number of hash slots mapping to a node in FAIL state. If this number is not zero the node is not able to serve queries unless cluster-require-full-coverage is set to no in the configuration.

§cluster_known_nodes: usize

The total number of known nodes in the cluster, including nodes in HANDSHAKE state that may not currently be proper members of the cluster.

§cluster_size: usize

The number of master nodes serving at least one hash slot in the cluster.

§cluster_current_epoch: usize

The local Current Epoch variable. This is used in order to create unique increasing version numbers during fail overs.

§cluster_my_epoch: u64

The Config Epoch of the node we are talking with. This is the current configuration version assigned to this node.

§cluster_stats_messages_sent: usize

Number of messages sent via the cluster node-to-node binary bus.

§cluster_stats_messages_received: usize

Number of messages received via the cluster node-to-node binary bus.

§total_cluster_links_buffer_limit_exceeded: usize

Accumulated count of cluster links freed due to exceeding the cluster-link-sendbuf-limit configuration.

§cluster_stats_messages_ping_sent: usize

Cluster bus PING sent (not to be confused with the client command ping).

§cluster_stats_messages_ping_received: usize

Cluster bus PING received (not to be confused with the client command ping).

§cluster_stats_messages_pong_sent: usize

PONG sent (reply to PING).

§cluster_stats_messages_pong_received: usize

PONG received (reply to PING).

§cluster_stats_messages_meet_sent: usize

Handshake message sent to a new node, either through gossip or cluster_meet.

§cluster_stats_messages_meet_received: usize

Handshake message sent to a new node, either through gossip or cluster_meet.

§cluster_stats_messages_fail_sent: usize

Mark node xxx as failing.

§cluster_stats_messages_fail_received: usize

Mark node xxx as failing.

§cluster_stats_messages_publish_sent: usize

Pub/Sub Publish propagation, see Pubsub.

§cluster_stats_messages_publish_received: usize

Pub/Sub Publish propagation, see Pubsub.

§cluster_stats_messages_auth_req_sent: usize

Replica initiated leader election to replace its master.

§cluster_stats_messages_auth_req_received: usize

Replica initiated leader election to replace its master.

§cluster_stats_messages_auth_ack_sent: usize

Message indicating a vote during leader election.

§cluster_stats_messages_auth_ack_received: usize

Message indicating a vote during leader election.

§cluster_stats_messages_update_sent: usize

Another node slots configuration.

§cluster_stats_messages_update_received: usize

Another node slots configuration.

§cluster_stats_messages_mfstart_sent: usize

Pause clients for manual failover.

§cluster_stats_messages_mfstart_received: usize

Pause clients for manual failover.

§cluster_stats_messages_module_sent: usize

Module cluster API message.

§cluster_stats_messages_module_received: usize

Module cluster API message.

§cluster_stats_messages_publishshard_sent: usize

Pub/Sub Publish shard propagation, see Sharded Pubsub.

§cluster_stats_messages_publishshard_received: usize

Pub/Sub Publish shard propagation, see Sharded Pubsub.

Trait Implementations§

source§

impl<'de> Deserialize<'de> for ClusterInfo

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> Response for T