mirror of https://github.com/status-im/consul.git
Re-configure `LeaderLeaseTimeout` to pass validation
This commit is contained in:
parent
179a74ea02
commit
9e3ad6721c
|
@ -44,6 +44,7 @@ func nextConfig() *Config {
|
|||
cons.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
|
||||
cons.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
|
||||
|
||||
cons.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
|
||||
cons.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
|
||||
cons.RaftConfig.ElectionTimeout = 40 * time.Millisecond
|
||||
|
||||
|
|
|
@ -95,6 +95,7 @@ func nextConfig() *agent.Config {
|
|||
cons.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
|
||||
cons.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
|
||||
|
||||
cons.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
|
||||
cons.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
|
||||
cons.RaftConfig.ElectionTimeout = 40 * time.Millisecond
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ func testServerConfig(t *testing.T, NodeName string) (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
|
||||
|
||||
|
|
Loading…
Reference in New Issue