Commit 1674b9d6 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

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: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 93ca992c
...@@ -53,7 +53,7 @@ import ( ...@@ -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) { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment