Skip to content

Commit

Permalink
Update comments about dynamic replication grace period
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Pillitteri <[email protected]>
  • Loading branch information
56quarters committed Jan 14, 2025
1 parent 101af2f commit 744614e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/querier/blocks_store_queryable.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ func NewBlocksStoreQueryableFromConfig(querierCfg Config, gatewayCfg storegatewa
if gatewayCfg.DynamicReplication.Enabled {
dynamicReplication = storegateway.NewMaxTimeDynamicReplication(
gatewayCfg.DynamicReplication.MaxTimeThreshold,
// Exclude blocks which have recently become eligible for expanded replication, in order to give
// enough time to store-gateways to discover and load them (3 times the sync interval)
// Keep syncing blocks to store-gateways for a grace period (3 times the sync interval) to
// ensure they are not unloaded while they are still being queried.
mimir_tsdb.NewBlockDiscoveryDelayMultiplier*storageCfg.BucketStore.SyncInterval,
)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/storegateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ func newStoreGateway(gatewayCfg Config, storageCfg mimir_tsdb.BlocksStorageConfi
if gatewayCfg.DynamicReplication.Enabled {
dynamicReplication = NewMaxTimeDynamicReplication(
gatewayCfg.DynamicReplication.MaxTimeThreshold,
// Exclude blocks which have recently become eligible for expanded replication, in order to give
// enough time to store-gateways to discover and load them (3 times the sync interval)
// Keep syncing blocks to store-gateways for a grace period (3 times the sync interval) to
// ensure they are not unloaded while they are still being queried.
mimir_tsdb.NewBlockDiscoveryDelayMultiplier*storageCfg.BucketStore.SyncInterval,
)
}
Expand Down

0 comments on commit 744614e

Please sign in to comment.