mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:13:33 +08:00
Properly defined timeouts and max cluster size
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user