diff options
author | antirez <antirez@gmail.com> | 2017-04-14 13:39:49 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-04-14 13:39:49 +0200 |
commit | 02777bb2529a403b50be4621a93fd65cdce14343 (patch) | |
tree | 9eb352ecff164840acfb72309e556163969c8b7d /src/cluster.h | |
parent | 8c829d9e4323b3636afa43d0ad8eb1ce2397c3f9 (diff) | |
download | redis-02777bb2529a403b50be4621a93fd65cdce14343.tar.gz |
Cluster: always add PFAIL nodes at end of gossip section.
To rely on the fact that nodes in PFAIL state will be shared around by
randomly adding them in the gossip section is a weak assumption,
especially after changes related to sending less ping/pong packets.
We want to always include gossip entries for all the nodes that are in
PFAIL state, so that the PFAIL -> FAIL state promotion can happen much
faster and reliably.
Related to #3929.
Diffstat (limited to 'src/cluster.h')
-rw-r--r-- | src/cluster.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h index e7c088569..5e228c0f9 100644 --- a/src/cluster.h +++ b/src/cluster.h @@ -165,6 +165,8 @@ typedef struct clusterState { /* Messages received and sent by type. */ long long stats_bus_messages_sent[CLUSTERMSG_TYPE_COUNT]; long long stats_bus_messages_received[CLUSTERMSG_TYPE_COUNT]; + long long stats_pfail_nodes; /* Number of nodes in PFAIL status, + excluding nodes without address. */ } clusterState; /* Redis cluster messages header */ |