1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-19 01:17:04 +00:00

Increase timeouts for etcd

This commit is contained in:
Darren Shepherd
2020-08-07 23:56:14 -07:00
parent 071be464e4
commit 09bcb80b32

View File

@@ -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")