mirror of https://github.com/status-im/consul.git
raft: increase raft notify buffer. (#6863)
* Increase raft notify buffer. Fixes https://github.com/hashicorp/consul/issues/6852. Increasing the buffer helps recovering from leader flapping. It lowers the chances of the flapping leader to get into a deadlock situation like described in #6852.
This commit is contained in:
parent
11a571de95
commit
7d6ea82527
|
@ -725,7 +725,7 @@ func (s *Server) setupRaft() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up a channel for reliable leader notifications.
|
// Set up a channel for reliable leader notifications.
|
||||||
raftNotifyCh := make(chan bool, 1)
|
raftNotifyCh := make(chan bool, 10)
|
||||||
s.config.RaftConfig.NotifyCh = raftNotifyCh
|
s.config.RaftConfig.NotifyCh = raftNotifyCh
|
||||||
s.raftNotifyCh = raftNotifyCh
|
s.raftNotifyCh = raftNotifyCh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue