From 8dcc2d6e552d7bfb26e4193b06f34f38d818cae9 Mon Sep 17 00:00:00 2001 From: Dylan Guedes Date: Wed, 22 Jun 2022 11:38:08 -0300 Subject: [PATCH] Use shipper as indexClient for read mode. (#6461) --- pkg/loki/modules.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/loki/modules.go b/pkg/loki/modules.go index 16c7de7b13f63..d3f5adb351922 100644 --- a/pkg/loki/modules.go +++ b/pkg/loki/modules.go @@ -490,7 +490,8 @@ func (t *Loki) initStore() (_ services.Service, err error) { // Use AsyncStore to query both ingesters local store and chunk store for store queries. // Only queriers should use the AsyncStore, it should never be used in ingesters. asyncStore = true - case t.Cfg.isModuleEnabled(IndexGateway): + fallthrough + case t.Cfg.isModuleEnabled(IndexGateway) || t.Cfg.isModuleEnabled(Read): // we want to use the actual storage when running the index-gateway, so we remove the Addr from the config t.Cfg.StorageConfig.BoltDBShipperConfig.IndexGatewayClientConfig.Disabled = true t.Cfg.StorageConfig.TSDBShipperConfig.IndexGatewayClientConfig.Disabled = true