streaming: double the cache TTL

10 minutes is the default blocking query timeout. Using the same value results in us hitting
the expired cache entry bug frequently. By extending this TTL we at least mitigate the problem.

The underlying bug still needs to be fixed.
This commit is contained in:
Daniel Nephin 2021-02-09 14:36:26 -05:00
parent 9423c887c4
commit 6b36ab744c
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ type StreamingHealthServices struct {
// so using a shorter TTL ensures the cache entry expires sooner. // so using a shorter TTL ensures the cache entry expires sooner.
func (c *StreamingHealthServices) RegisterOptions() cache.RegisterOptions { func (c *StreamingHealthServices) RegisterOptions() cache.RegisterOptions {
opts := c.RegisterOptionsBlockingRefresh.RegisterOptions() opts := c.RegisterOptionsBlockingRefresh.RegisterOptions()
opts.LastGetTTL = 10 * time.Minute opts.LastGetTTL = 20 * time.Minute
return opts return opts
} }