Skip to content

Commit

Permalink
Use shipper as indexClient for read mode. (#6461)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanGuedes authored Jun 22, 2022
1 parent 66324a6 commit 8dcc2d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dcc2d6

Please sign in to comment.