From 3ac5b611b1d1af5cbae6805ae808198723ab6b7b Mon Sep 17 00:00:00 2001 From: Alex Mohr Date: Thu, 29 Jan 2015 18:54:35 -0800 Subject: [PATCH] Update master.go Make pod status update every 5 seconds instead of every 30 to mask the issue #3952. I suspect (but haven't confirmed) that #3927 doesn't completely address the issue since it will still happily cache a Pending status for up to 30 seconds even though the pod may have transitioned to Running already. --- pkg/master/master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/master/master.go b/pkg/master/master.go index c086a118315..259f3534a12 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -351,7 +351,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