Skip to content

Commit

Permalink
Allow separate label cache for query-frontend (#3560)
Browse files Browse the repository at this point in the history
Instead of using the cache config from the query-range.

Signed-off-by: Craig Furman <craig.furman89@gmail.com>
  • Loading branch information
craigfurman authored Dec 10, 2020
1 parent ae814fc commit 92d1bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cmd/thanos/query_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 92d1bb9

Please sign in to comment.