Merge pull request #6535 from davidopp/master

Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s.
This commit is contained in:
David Oppenheimer
2015-04-07 13:37:03 -07:00
6 changed files with 10 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ type NodeController struct {
// is just created, e.g. cluster bootstrap or node creation, we give a longer grace period.
nodeStartupGracePeriod time.Duration
// Value controlling NodeController monitoring period, i.e. how often does NodeController
// check node status posted from kubelet. Theoretically, this value should be lower than nodeMonitorGracePeriod.
// check node status posted from kubelet. This value should be lower than nodeMonitorGracePeriod.
// TODO: Change node status monitor to watch based.
nodeMonitorPeriod time.Duration
// Method for easy mocking in unittest.

View File

@@ -40,8 +40,8 @@ import (
)
const (
testNodeMonitorGracePeriod = 8 * time.Second
testNodeStartupGracePeriod = 30 * time.Second
testNodeMonitorGracePeriod = 40 * time.Second
testNodeStartupGracePeriod = 60 * time.Second
testNodeMonitorPeriod = 5 * time.Second
)