replication: count bidirectional replica connections
Start counting replicas, whose connections are "healthy", e.g. there are both relay and applier in SUBSCRIBE state. Introduce triggers for the events of "healthy quorum" loss and gain. "healthy quorum" is the same as replication_synchro_quorum. The triggers will be used in raft pre-vote and synchro queue owner fencing. Both these features require tracking whether there is a quorum of nodes reachable from the local node. Pre-requisite #6654 Pre-requisite #6661 NO_DOC=no user-visible changes NO_CHANGELOG=no user-visible changes NO_TEST=preparatory patch
Showing
- src/box/box.cc 1 addition, 0 deletionssrc/box/box.cc
- src/box/raft.c 3 additions, 46 deletionssrc/box/raft.c
- src/box/relay.cc 1 addition, 0 deletionssrc/box/relay.cc
- src/box/replication.cc 77 additions, 0 deletionssrc/box/replication.cc
- src/box/replication.h 101 additions, 0 deletionssrc/box/replication.h
Loading
Please register or sign in to comment