From 92d1bb969533dd6932a92210a387d501feb5ef08 Mon Sep 17 00:00:00 2001 From: Craig Furman Date: Thu, 10 Dec 2020 17:32:28 +0000 Subject: [PATCH] Allow separate label cache for query-frontend (#3560) Instead of using the cache config from the query-range. Signed-off-by: Craig Furman --- CHANGELOG.md | 1 + cmd/thanos/query_frontend.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf15616cf4..d438abf95d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ We use _breaking :warning:_ to mark changes that are not backward compatible (re ### Fixed - [#3527](https://github.com/thanos-io/thanos/pull/3527) Query Frontend: Fix query_range behavior when start/end times are the same +- [#3560](https://github.com/thanos-io/thanos/pull/3560) query-frontend: Allow separate label cache ### Changed diff --git a/cmd/thanos/query_frontend.go b/cmd/thanos/query_frontend.go index fd97747331..67d7689e67 100644 --- a/cmd/thanos/query_frontend.go +++ b/cmd/thanos/query_frontend.go @@ -158,7 +158,7 @@ func runQueryFrontend( return err } if len(labelsCacheConfContentYaml) > 0 { - cacheConfig, err := queryfrontend.NewCacheConfig(logger, queryRangeCacheConfContentYaml) + cacheConfig, err := queryfrontend.NewCacheConfig(logger, labelsCacheConfContentYaml) if err != nil { return errors.Wrap(err, "initializing the labels cache config") }