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: ClusterStateState 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: usizeNumber 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: usizeNumber of hash slots mapping to a node not in FAIL or PFAIL state.
cluster_slots_pfail: usizeNumber 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: usizeNumber 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: usizeThe 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: usizeThe number of master nodes serving at least one hash slot in the cluster.
cluster_current_epoch: usizeThe local Current Epoch variable. This is used in order to create unique increasing version numbers during fail overs.
cluster_my_epoch: u64The Config Epoch of the node we are talking with. This is the current configuration version assigned to this node.
cluster_stats_messages_sent: usizeNumber of messages sent via the cluster node-to-node binary bus.
cluster_stats_messages_received: usizeNumber of messages received via the cluster node-to-node binary bus.
total_cluster_links_buffer_limit_exceeded: usizeAccumulated count of cluster links freed due to exceeding the cluster-link-sendbuf-limit configuration.
cluster_stats_messages_ping_sent: usizeCluster bus PING sent (not to be confused with the client command ping).
cluster_stats_messages_ping_received: usizeCluster bus PING received (not to be confused with the client command ping).
cluster_stats_messages_pong_sent: usizePONG sent (reply to PING).
cluster_stats_messages_pong_received: usizePONG received (reply to PING).
cluster_stats_messages_meet_sent: usizeHandshake message sent to a new node, either through gossip or cluster_meet.
cluster_stats_messages_meet_received: usizeHandshake message sent to a new node, either through gossip or cluster_meet.
cluster_stats_messages_fail_sent: usizeMark node xxx as failing.
cluster_stats_messages_fail_received: usizeMark node xxx as failing.
cluster_stats_messages_publish_sent: usizePub/Sub Publish propagation, see Pubsub.
cluster_stats_messages_publish_received: usizePub/Sub Publish propagation, see Pubsub.
cluster_stats_messages_auth_req_sent: usizeReplica initiated leader election to replace its master.
cluster_stats_messages_auth_req_received: usizeReplica initiated leader election to replace its master.
cluster_stats_messages_auth_ack_sent: usizeMessage indicating a vote during leader election.
cluster_stats_messages_auth_ack_received: usizeMessage indicating a vote during leader election.
cluster_stats_messages_update_sent: usizeAnother node slots configuration.
cluster_stats_messages_update_received: usizeAnother node slots configuration.
cluster_stats_messages_mfstart_sent: usizePause clients for manual failover.
cluster_stats_messages_mfstart_received: usizePause clients for manual failover.
cluster_stats_messages_module_sent: usizeModule cluster API message.
cluster_stats_messages_module_received: usizeModule cluster API message.
cluster_stats_messages_publishshard_sent: usizePub/Sub Publish shard propagation, see Sharded Pubsub.
cluster_stats_messages_publishshard_received: usizePub/Sub Publish shard propagation, see Sharded Pubsub.