Merge pull request #34951 from wojtek-t/tune_cacher_logs

Automatic merge from submit-queue

Reduce amount of annoying logs in cacher
pull/6/head
Kubernetes Submit Queue 2016-10-17 08:45:00 -07:00 committed by GitHub
commit f85d8f2e66
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, p
}
trace := util.NewTrace(fmt.Sprintf("cacher %v: List", c.objectType.String()))
defer trace.LogIfLong(250 * time.Millisecond)
defer trace.LogIfLong(500 * time.Millisecond)
c.ready.wait()
trace.Step("Ready")
@ -749,7 +749,7 @@ func (c *cacheWatcher) process(initEvents []watchCacheEvent, resourceVersion uin
// We should understand what is blocking us in those cases (e.g.
// is it lack of CPU, network, or sth else) and potentially
// consider increase size of result buffer in those cases.
const initProcessThreshold = 100 * time.Millisecond
const initProcessThreshold = 500 * time.Millisecond
startTime := time.Now()
for _, event := range initEvents {
c.sendWatchCacheEvent(event)