mirror of https://github.com/k3s-io/k3s
Merge pull request #32070 from gmarek/nodecontroller
Automatic merge from submit-queue Sleep between NodeStatus update retries Just a thing I found when looking into other problems. This is pretty much no-risk change fixing wrong behavior. Do you think it should go in 1.4? @pwittrockpull/6/head
commit
afef4b6938
|
@ -73,6 +73,8 @@ const (
|
||||||
evictionRateLimiterBurst = 1
|
evictionRateLimiterBurst = 1
|
||||||
// The amount of time the nodecontroller polls on the list nodes endpoint.
|
// The amount of time the nodecontroller polls on the list nodes endpoint.
|
||||||
apiserverStartupGracePeriod = 10 * time.Minute
|
apiserverStartupGracePeriod = 10 * time.Minute
|
||||||
|
// The amount of time the nodecontroller should sleep between retrying NodeStatus updates
|
||||||
|
retrySleepTime = 20 * time.Millisecond
|
||||||
)
|
)
|
||||||
|
|
||||||
type zoneState string
|
type zoneState string
|
||||||
|
@ -538,6 +540,7 @@ func (nc *NodeController) monitorNodeStatus() error {
|
||||||
glog.Errorf("Failed while getting a Node to retry updating NodeStatus. Probably Node %s was deleted.", name)
|
glog.Errorf("Failed while getting a Node to retry updating NodeStatus. Probably Node %s was deleted.", name)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
time.Sleep(retrySleepTime)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Update status of Node %v from NodeController exceeds retry count."+
|
glog.Errorf("Update status of Node %v from NodeController exceeds retry count."+
|
||||||
|
|
Loading…
Reference in New Issue