mirror of
https://github.com/rancher/norman.git
synced 2025-09-20 02:32:46 +00:00
Increase timeouts for etcd
This commit is contained in:
@@ -20,7 +20,10 @@ import (
|
|||||||
func RunETCD(ctx context.Context, dataDir string) ([]string, error) {
|
func RunETCD(ctx context.Context, dataDir string) ([]string, error) {
|
||||||
endpoint := "http://localhost:2379"
|
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 {
|
if err := checkEtcd(endpoint); err != nil {
|
||||||
return nil, errors.Wrap(err, "waiting on etcd")
|
return nil, errors.Wrap(err, "waiting on etcd")
|
||||||
|
Reference in New Issue
Block a user