Skip to content

Commit

Permalink
Update master.go
Browse files Browse the repository at this point in the history
Make pod status update every 5 seconds instead of every 30 to mask the issue kubernetes#3952.  I suspect (but haven't confirmed) that kubernetes#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.
  • Loading branch information
alex-mohr committed Jan 30, 2015
1 parent c2c109e commit 3ac5b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/master/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ac5b61

Please sign in to comment.