Browse Source

Raise etcd connection test timeout to 30 seconds

Addressess issue where the compact may take more than 10 seconds on slower disks. These disks probably aren't really suitable for etcd, but apparently run fine otherwise.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/5789/head
Brad Davidson 2 years ago committed by Brad Davidson
parent
commit
1674b9d640
  1. 4
      pkg/etcd/etcd.go

4
pkg/etcd/etcd.go

@ -53,7 +53,7 @@ import (
)
const (
testTimeout = time.Second * 10
testTimeout = time.Second * 30
manageTickerTime = time.Second * 15
learnerMaxStallTime = time.Minute * 5
memberRemovalTimeout = time.Minute * 1
@ -933,7 +933,7 @@ func (e *ETCD) manageLearners(ctx context.Context) {
defer t.Stop()
for range t.C {
ctx, cancel := context.WithTimeout(ctx, testTimeout)
ctx, cancel := context.WithTimeout(ctx, manageTickerTime)
defer cancel()
// Check to see if the local node is the leader. Only the leader should do learner management.

Loading…
Cancel
Save