adjust unreasonable timing assumption
This commit is contained in:
Родитель
043d4ca76d
Коммит
5e805c0a05
|
@ -181,7 +181,7 @@ func (c *Controller) createTPR() error {
|
|||
return err
|
||||
}
|
||||
|
||||
return k8sutil.WaitEtcdTPRReady(c.kclient.Client, 3*time.Second, 90*time.Second, c.MasterHost, c.Namespace)
|
||||
return k8sutil.WaitEtcdTPRReady(c.kclient.Client, 3*time.Second, 30*time.Second, c.MasterHost, c.Namespace)
|
||||
}
|
||||
|
||||
func monitorEtcdCluster(host, ns string, httpClient *http.Client, watchVersion string) (<-chan *Event, <-chan error) {
|
||||
|
|
|
@ -129,7 +129,7 @@ func CreateAndWaitPod(kclient *unversioned.Client, pod *api.Pod, m *etcdutil.Mem
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = watch.Until(100*time.Second, w, unversioned.PodRunningAndReady)
|
||||
_, err = watch.Until(10*time.Second, w, unversioned.PodRunning)
|
||||
// TODO: cleanup pod on failure
|
||||
return err
|
||||
}
|
||||
|
@ -252,9 +252,9 @@ func MakeEtcdPod(m *etcdutil.Member, initialCluster []string, clusterName, state
|
|||
"ETCDCTL_API=3 etcdctl get foo"},
|
||||
},
|
||||
},
|
||||
// if an etcd member tries to join quorum, it has 5s strict check
|
||||
// before it can serve any client request
|
||||
InitialDelaySeconds: 7,
|
||||
// If an etcd member tries to join quorum, it has 5s strict check
|
||||
// It can still serve client request.
|
||||
InitialDelaySeconds: 5,
|
||||
TimeoutSeconds: 10,
|
||||
PeriodSeconds: 10,
|
||||
FailureThreshold: 3,
|
||||
|
|
Загрузка…
Ссылка в новой задаче