Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s.

This commit is contained in:
David Oppenheimer
2015-04-07 12:36:09 -07:00
parent 19e4e16ec2
commit d8aa57872a
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

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