From 5bf9747519119bcaffd259afcdbdb03384156f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20S=CC=8Ctibrany=CC=81?= Date: Wed, 12 Aug 2020 10:50:19 +0200 Subject: [PATCH] Apply chunks-store config if primary or secondary store use chunks. --- cortex/config.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortex/config.libsonnet b/cortex/config.libsonnet index 229ae7ba..8bbf1ee2 100644 --- a/cortex/config.libsonnet +++ b/cortex/config.libsonnet @@ -177,7 +177,7 @@ 'querier.query-store-after': '12h', } ) + ( - if $._config.memcached_index_queries_enabled && $._config.storage_engine == 'chunks' then + if $._config.memcached_index_queries_enabled && ($._config.storage_engine == 'chunks' || $._config.querier_second_storage_engine == 'chunks') then { // Setting for index cache. 'store.index-cache-validity': '14m', // ingester.retain-period=15m, 1m less for safety.