disabled indexGateway client for boltdbShipper in migration tool. (#9809)

**What this PR does / why we need it**:
Without this fix, the migration tool tries to initialize the
ingexGateway client, which is unreachable.
This leads to the error:
`Failed to create source store: error creating index client: index
gateway grpc dial: failed to build resolver: passthrough: received empty
target in Build()`
pull/9626/head^2
Vladyslav Diachenko 2 years ago committed by GitHub
parent a65c99d9bf
commit 00cf3133e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/migrate/main.go

@ -103,7 +103,10 @@ func main() {
destConfig.StorageConfig.TSDBShipperConfig.ResyncInterval = 1 * time.Minute
// Don't want to use the index gateway for this, this makes sure the index files are properly uploaded when the store is stopped.
sourceConfig.StorageConfig.BoltDBShipperConfig.IndexGatewayClientConfig.Disabled = true
sourceConfig.StorageConfig.TSDBShipperConfig.IndexGatewayClientConfig.Disabled = true
destConfig.StorageConfig.BoltDBShipperConfig.IndexGatewayClientConfig.Disabled = true
destConfig.StorageConfig.TSDBShipperConfig.IndexGatewayClientConfig.Disabled = true
// The long nature of queries requires stretching out the cardinality limit some and removing the query length limit

Loading…
Cancel
Save