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

Update master.go's UpdateAllContainers to every 5 seconds instead of 30.
pull/6/head
Satnam Singh 2015-01-30 07:58:43 -08:00
commit 9a8d20a2fc
1 changed files with 1 additions and 1 deletions

View File

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