Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document and set default raft timeout #559

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/host/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,22 @@ int main(int argc, char** argv)
"--notify-server-address",
"Server address to notify progress to");

size_t raft_timeout = 100;
app.add_option(
"--raft-timeout-ms", raft_timeout, "Raft timeout in milliseconds", true);

size_t raft_election_timeout = 500;
size_t raft_election_timeout = 5000;
app.add_option(
"--raft-election-timeout-ms",
raft_election_timeout,
"Raft election timeout in milliseconds",
"Raft election timeout in milliseconds. If a Raft follower does not "
"receive any heartbeat from the leader after this timeout, the "
"follower triggers a new election.",
true);

size_t raft_timeout = 100;
app.add_option(
"--raft-timeout-ms",
raft_timeout,
"Raft timeout in milliseconds. The Raft leader sends heartbeats to its "
"followers at regular intervals defined by this timeout. This should be "
"set to a significantly lower value than --raft-election-timeout-ms.",
true);

size_t max_msg_size = 24;
Expand Down