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? @pwittrock
pull/6/head
Kubernetes Submit Queue 2016-09-06 03:51:20 -07:00 committed by GitHub
commit afef4b6938
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,8 @@ const (
evictionRateLimiterBurst = 1
// The amount of time the nodecontroller polls on the list nodes endpoint.
apiserverStartupGracePeriod = 10 * time.Minute
// The amount of time the nodecontroller should sleep between retrying NodeStatus updates
retrySleepTime = 20 * time.Millisecond
)
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)
break
}
time.Sleep(retrySleepTime)
}
if err != nil {
glog.Errorf("Update status of Node %v from NodeController exceeds retry count."+