From 6b36ab744c0661cc45eaaac97ce4da2335706b28 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 9 Feb 2021 14:36:26 -0500 Subject: [PATCH] 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. --- agent/cache-types/streaming_health_services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/cache-types/streaming_health_services.go b/agent/cache-types/streaming_health_services.go index efb1dba871..d150a43f48 100644 --- a/agent/cache-types/streaming_health_services.go +++ b/agent/cache-types/streaming_health_services.go @@ -39,7 +39,7 @@ type StreamingHealthServices struct { // so using a shorter TTL ensures the cache entry expires sooner. func (c *StreamingHealthServices) RegisterOptions() cache.RegisterOptions { opts := c.RegisterOptionsBlockingRefresh.RegisterOptions() - opts.LastGetTTL = 10 * time.Minute + opts.LastGetTTL = 20 * time.Minute return opts }