I am trying to understand how the following configuration parameters work together.
TARGET_PEER_CONNECTIONS
MAX_PEER_CONNECTIONS
PREFERRED_PEERS
PREFERRED_PEER_KEYS
KNOWN_PEERS
QUORUM_SET
I think, the KNOWN_PEERS
is a list of peers with whom the given node will ever connect to/from. From this list, the given node will attempt to connect up to a TARGET_PEER_CONNECTIONS
number of peers with the priority as set in PREFERRED_PEERS
or PREFERRED_PEER_KEYS
or both. And, at all times, the MAX_PEER_CONNECTIONS
serves as an upper limit to all connections (to/from) this node can ever have. The node, if a validating one (NODE_IS_VALIDATOR=true
), will arrive at a quorum based on the peers and the threshold set in the QUORUM_SET
definition.
If the above para is the understanding, then couple of things emerge:
KNOWN_PEERS
is a super set of PREFERRED_PEERS
that is itself a super set of QUORUM_SET
.
- If
QUORUM_SET
were to have peers that are not in KNOWN_PEERS
set, then quorum can never happen.
- All peers in
QUORUM_SET
should be of the validating type to arrive at a quorum.
Is this right?