From 09bcb80b321298a7b69a086384a726ef48080728 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 7 Aug 2020 23:56:14 -0700 Subject: [PATCH] Increase timeouts for etcd --- pkg/kwrapper/etcd/etcd_linux.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kwrapper/etcd/etcd_linux.go b/pkg/kwrapper/etcd/etcd_linux.go index 00675203..7f762679 100644 --- a/pkg/kwrapper/etcd/etcd_linux.go +++ b/pkg/kwrapper/etcd/etcd_linux.go @@ -20,7 +20,10 @@ import ( func RunETCD(ctx context.Context, dataDir string) ([]string, error) { endpoint := "http://localhost:2379" - go runEtcd(ctx, []string{"etcd", fmt.Sprintf("--data-dir=%s", filepath.Join(dataDir, "etcd"))}) + go runEtcd(ctx, []string{"etcd", + fmt.Sprintf("--data-dir=%s", filepath.Join(dataDir, "etcd")), + "--heartbeat-interval=500", + "--election-timeout=5000"}) if err := checkEtcd(endpoint); err != nil { return nil, errors.Wrap(err, "waiting on etcd")