Increase snapshot interval to 3600s.

This commit is contained in:
kishorenc 2020-09-13 09:51:08 +05:30
parent 0577df5e91
commit eb0e5b9d1e

View File

@ -222,7 +222,7 @@ int start_raft_server(ReplicationState& replication_state, const std::string& st
// Reference: https://github.com/apache/incubator-brpc/blob/122770d/docs/en/client.md#timeout
size_t election_timeout_ms = 5000;
if (replication_state.start(peering_endpoint, api_port, election_timeout_ms, 600, state_dir,
if (replication_state.start(peering_endpoint, api_port, election_timeout_ms, 3600, state_dir,
nodes_config_op.get()) != 0) {
LOG(ERROR) << "Failed to start peering state";
exit(-1);