mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Only sleep 1.1*interval. #7572
This commit is contained in:
parent
7361f751a6
commit
3191b26bc6
@ -555,7 +555,7 @@ func RunRC(config RCConfig) error {
|
||||
By(fmt.Sprintf("Making sure all %d replicas of rc %s in namespace %s exist", replicas, name, ns))
|
||||
failCount := int(25 / interval)
|
||||
for same < failCount && current < replicas {
|
||||
time.Sleep(time.Duration(interval*2) * time.Second)
|
||||
time.Sleep(time.Duration(float32(interval)*1.1) * time.Second)
|
||||
|
||||
// Greedily read all existing entries in the queue until
|
||||
// all pods are found submitted or the queue is empty
|
||||
@ -593,7 +593,7 @@ func RunRC(config RCConfig) error {
|
||||
podLists.Reset()
|
||||
foundAllPods := false
|
||||
for same < failCount && current < replicas {
|
||||
time.Sleep(time.Duration(interval*2) * time.Second)
|
||||
time.Sleep(time.Duration(float32(interval)*1.1) * time.Second)
|
||||
|
||||
// Greedily read all existing entries in the queue until
|
||||
// either all pods are running or the queue is empty
|
||||
|
Loading…
Reference in New Issue
Block a user