Skip to content

Commit

Permalink
raft: increase raft notify buffer. (#6863)
Browse files Browse the repository at this point in the history
* Increase raft notify buffer.

Fixes #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.
  • Loading branch information
hanshasselberg authored Jan 22, 2020
1 parent 11a571d commit 7d6ea82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ func (s *Server) setupRaft() error {
}

// Set up a channel for reliable leader notifications.
raftNotifyCh := make(chan bool, 1)
raftNotifyCh := make(chan bool, 10)
s.config.RaftConfig.NotifyCh = raftNotifyCh
s.raftNotifyCh = raftNotifyCh

Expand Down

0 comments on commit 7d6ea82

Please sign in to comment.