mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
With use cases bringing us more data I wanted to suggest these changes.
With inlining election timeout updates we double the lock contention and most likely introduced head of line issues for routes under heavy load. Also slowing down heartbeats with so many assets being deployed in our user ecosystem, also moved the normal follower to candidate timing further out, similar to the lost quorum. Note that the happy path transfer will still be very quick. Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -424,7 +424,7 @@ func (sc *supercluster) leader() *Server {
|
||||
|
||||
func (sc *supercluster) waitOnLeader() {
|
||||
sc.t.Helper()
|
||||
expires := time.Now().Add(5 * time.Second)
|
||||
expires := time.Now().Add(10 * time.Second)
|
||||
for time.Now().Before(expires) {
|
||||
for _, c := range sc.clusters {
|
||||
if leader := c.leader(); leader != nil {
|
||||
|
||||
Reference in New Issue
Block a user