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 93ca992cdb
commit 1674b9d640

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

Loading…
Cancel
Save