mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
rpc: less agressive raft timeouts
Allowing more time for raft to consolidate should drop the number of leader elections.
This commit is contained in:
parent
457b98a099
commit
bae4b1d045
@ -72,11 +72,11 @@ func testServerConfig(t *testing.T) (string, *Config) {
|
||||
config.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
|
||||
config.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
|
||||
|
||||
config.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
|
||||
config.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
|
||||
config.RaftConfig.ElectionTimeout = 40 * time.Millisecond
|
||||
config.RaftConfig.LeaderLeaseTimeout = 100 * time.Millisecond
|
||||
config.RaftConfig.HeartbeatTimeout = 200 * time.Millisecond
|
||||
config.RaftConfig.ElectionTimeout = 200 * time.Millisecond
|
||||
|
||||
config.ReconcileInterval = 100 * time.Millisecond
|
||||
config.ReconcileInterval = 300 * time.Millisecond
|
||||
|
||||
config.AutopilotConfig.ServerStabilizationTime = 100 * time.Millisecond
|
||||
config.ServerHealthInterval = 50 * time.Millisecond
|
||||
|
Loading…
x
Reference in New Issue
Block a user