Properly defined timeouts and max cluster size

This commit is contained in:
Pavel Kirienko
2015-05-08 12:29:28 +03:00
parent a1ee2efea0
commit 1a640e6763
5 changed files with 50 additions and 31 deletions
@@ -17,4 +17,4 @@ uint8 configured_cluster_size
# Node ID of servers that are known to the publishing server, including the publishing server itself.
# Capacity of this array defines maximum size of the server cluster.
#
uint8[<=7] known_nodes
uint8[<=5] known_nodes
@@ -3,6 +3,10 @@
# Please refer to the specification for details.
#
uint16 DEFAULT_REQUEST_TIMEOUT_MS = 100
uint16 DEFAULT_BASE_ELECTION_TIMEOUT_MS = 1000 # request timeout * max cluster size * 2 requests
uint32 term
uint8 prev_log_index
uint8 prev_log_term