increase timeout

This commit is contained in:
David Ashpole 2017-02-27 10:59:07 -08:00
parent 77733c2afd
commit 6daa2f2ef3

View File

@ -291,9 +291,9 @@ func killPodNow(podWorkers PodWorkers, recorder record.EventRecorder) eviction.K
} }
// we timeout and return an error if we don't get a callback within a reasonable time. // we timeout and return an error if we don't get a callback within a reasonable time.
// the default timeout is relative to the grace period (we settle on 2s to wait for kubelet->runtime traffic to complete in sigkill) // the default timeout is relative to the grace period (we settle on 10s to wait for kubelet->runtime traffic to complete in sigkill)
timeout := int64(gracePeriod + (gracePeriod / 2)) timeout := int64(gracePeriod + (gracePeriod / 2))
minTimeout := int64(2) minTimeout := int64(10)
if timeout < minTimeout { if timeout < minTimeout {
timeout = minTimeout timeout = minTimeout
} }