Merge pull request #3969 from GoogleCloudPlatform/alex-mohr-patch-1

Update master.go's UpdateAllContainers to every 5 seconds instead of 30.
This commit is contained in:
Satnam Singh
2015-01-30 07:58:43 -08:00

View File

@@ -341,7 +341,7 @@ func (m *Master) init(c *Config) {
RESTStorageToNodes(nodeRESTStorage).Nodes(),
m.podRegistry,
)
go util.Forever(func() { podCache.UpdateAllContainers() }, time.Second*30)
go util.Forever(func() { podCache.UpdateAllContainers() }, time.Second*5)
go util.Forever(func() { podCache.GarbageCollectPodStatus() }, time.Minute*30)
// TODO: Factor out the core API registration