mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 13:23:34 +08:00
22 lines
485 B
Plaintext
22 lines
485 B
Plaintext
#
|
|
# This type is a part of the Raft consensus algorithm.
|
|
# Please refer to the specification for details.
|
|
#
|
|
|
|
uint16 DEFAULT_REQUEST_TIMEOUT_MS = 200
|
|
|
|
uint16 DEFAULT_BASE_ELECTION_TIMEOUT_MS = 1600 # request timeout * (max cluster size - 1) * 2 requests
|
|
|
|
uint32 term
|
|
uint32 prev_log_term
|
|
uint8 prev_log_index
|
|
uint8 leader_commit
|
|
|
|
# Full replication: 127 requests * 0.2 sec interval * 4 followers * 2 trips of next_index value ~ 3.5 min
|
|
Entry[<=1] entries
|
|
|
|
---
|
|
|
|
uint32 term
|
|
bool success
|