-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated configurations #6673
Conversation
9159a1f
to
abb0dac
Compare
abb0dac
to
3b3ecdd
Compare
3b3ecdd
to
f9366f5
Compare
The following deprecated flags are removed: - `-blocks-storage.bucket-store.max-chunk-pool-bytes` - `-blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes` - `-blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes` See #4996 for more details.
7592ea0
to
5e5a68c
Compare
This configuration parameter has been removed. Mimir is running with bucket index enabled by default since 2.0 and it is now not possible to disable it. See #5051 for more details.
5e5a68c
to
94fc1cb
Compare
@@ -4,6 +4,14 @@ | |||
|
|||
### Grafana Mimir | |||
|
|||
* [CHANGE] The following deprecated configurations have been removed: #6673 | |||
* `-querier.query-ingesters-within` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably aslo need to update runbook https://github.com/grafana/mimir/blob/main/docs/sources/mimir/manage/mimir-runbooks/_index.md. -querier.query-ingesters-within is still mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the flag still exists, but it's now a tenant-level override
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Followup to #6673 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Followup to #6673 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
var finder BlocksFinder | ||
if storageCfg.BucketStore.BucketIndex.DeprecatedEnabled { | ||
finder = NewBucketIndexBlocksFinder(BucketIndexBlocksFinderConfig{ | ||
IndexLoader: bucketindex.LoaderConfig{ | ||
CheckInterval: time.Minute, | ||
UpdateOnStaleInterval: storageCfg.BucketStore.SyncInterval, | ||
UpdateOnErrorInterval: storageCfg.BucketStore.BucketIndex.UpdateOnErrorInterval, | ||
IdleTimeout: storageCfg.BucketStore.BucketIndex.IdleTimeout, | ||
}, | ||
MaxStalePeriod: storageCfg.BucketStore.BucketIndex.MaxStalePeriod, | ||
IgnoreDeletionMarksDelay: storageCfg.BucketStore.IgnoreDeletionMarksDelay, | ||
}, bucketClient, limits, logger, reg) | ||
} else { | ||
finder = NewBucketScanBlocksFinder(BucketScanBlocksFinderConfig{ | ||
ScanInterval: storageCfg.BucketStore.SyncInterval, | ||
TenantsConcurrency: storageCfg.BucketStore.TenantSyncConcurrency, | ||
MetasConcurrency: storageCfg.BucketStore.MetaSyncConcurrency, | ||
CacheDir: storageCfg.BucketStore.SyncDir, | ||
IgnoreDeletionMarksDelay: storageCfg.BucketStore.IgnoreDeletionMarksDelay, | ||
}, bucketClient, limits, logger, reg) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default should be that the index is always used, not that it's never used
The use of BucketScanBlocksFinder was supposed to be removed in #6673 but its counterpart BucketIndexBlocksFinder was accidentally removed instead. This reverses that.
* Use BucketIndexBlocksFinder instead of BucketScanBlocksFinder The use of BucketScanBlocksFinder was supposed to be removed in #6673 but its counterpart BucketIndexBlocksFinder was accidentally removed instead. This reverses that. * Remove BlocksFinderBucketScan * Update docs wrt. bucket scanning option * Remove alert and runbook for bucket scanning
* Use BucketIndexBlocksFinder instead of BucketScanBlocksFinder The use of BucketScanBlocksFinder was supposed to be removed in #6673 but its counterpart BucketIndexBlocksFinder was accidentally removed instead. This reverses that. * Remove BlocksFinderBucketScan * Update docs wrt. bucket scanning option * Remove alert and runbook for bucket scanning (cherry picked from commit ff8a70a)
…6790) * Use BucketIndexBlocksFinder instead of BucketScanBlocksFinder The use of BucketScanBlocksFinder was supposed to be removed in #6673 but its counterpart BucketIndexBlocksFinder was accidentally removed instead. This reverses that. * Remove BlocksFinderBucketScan * Update docs wrt. bucket scanning option * Remove alert and runbook for bucket scanning (cherry picked from commit ff8a70a) Co-authored-by: Justin Lei <lei.justin@gmail.com>
var fetcher block.MetadataFetcher | ||
if u.cfg.BucketStore.BucketIndex.DeprecatedEnabled { | ||
fetcher = NewBucketIndexMetadataFetcher( | ||
userID, | ||
u.bucket, | ||
u.limits, | ||
u.logger, | ||
fetcherReg, | ||
filters, | ||
) | ||
} else { | ||
var err error | ||
fetcher, err = block.NewMetaFetcher( | ||
userLogger, | ||
u.cfg.BucketStore.MetaSyncConcurrency, | ||
userBkt, | ||
u.syncDirForUser(userID), // The fetcher stores cached metas in the "meta-syncer/" sub directory | ||
fetcherReg, | ||
filters, | ||
) | ||
if err != nil { | ||
return nil, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened #6808 to make the bucket index the default
// Wait until the querier has discovered the uploaded blocks. | ||
require.NoError(t, querier.WaitSumMetrics(e2e.Equals(2), "cortex_blocks_meta_synced")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we keep this, which was running when bucket index was disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by #6779
// Wait until the querier has discovered the uploaded blocks (discovered both by the querier and store-gateway). | ||
require.NoError(t, cluster.WaitSumMetricsWithOptions(e2e.Equals(float64(2*cluster.NumInstances()*2)), []string{"cortex_blocks_meta_synced"}, e2e.WithLabelMatchers( | ||
labels.MustNewMatcher(labels.MatchEqual, "component", "querier")))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by #6779
@@ -209,27 +209,13 @@ func NewBlocksStoreQueryableFromConfig(querierCfg Config, gatewayCfg storegatewa | |||
bucketClient = cachingBucket | |||
|
|||
// Create the blocks finder. | |||
var finder BlocksFinder | |||
if storageCfg.BucketStore.BucketIndex.DeprecatedEnabled { | |||
finder = NewBucketIndexBlocksFinder(BucketIndexBlocksFinderConfig{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong removal, fixed by #6779
queryMetrics := stats.NewQueryMetrics(reg) | ||
|
||
distributorQueryable := newDistributorQueryable(distributor, iteratorFunc, limits, queryMetrics, logger) | ||
distributorQueryable := newDistributorQueryable(distributor, mergeChunks, limits, queryMetrics, logger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why mergeChunks
? The default was -querier.batch-iterators=true
which means batch.NewChunkMergeIterator
was in use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in #6814
@@ -448,29 +448,20 @@ func (u *BucketStores) getOrCreateStore(userID string) (*BucketStore, error) { | |||
} | |||
|
|||
// Instantiate a different blocks metadata fetcher based on whether bucket index is enabled or not. | |||
var fetcher block.MetadataFetcher | |||
if u.cfg.BucketStore.BucketIndex.DeprecatedEnabled { | |||
fetcher = NewBucketIndexMetadataFetcher( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by #6808
|
||
var cfg Config | ||
flagext.DefaultValues(&cfg) | ||
cfg.BatchIterators = true // Always use the Batch iterator - regression test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given this was testing with batch iterators, then should we also keep that test (assuming that batch iterators are always on from now on)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to restore it. It was introduced earlier this year: #4376
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restored in #6814
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized this PR doesn't update about-versioning.md
which mentions these config options as deprecated. Can you update it @leizor ?
What this PR does
In preparation for release 2.11, this PR performs the scheduled removals of the following deprecated configuration parameters:
-querier.query-ingesters-within
-querier.iterators
-querier.batch-iterators
-blocks-storage.bucket-store.max-chunk-pool-bytes
-blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes
-blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes
-blocks-storage.bucket-store.bucket-index.enabled
I've separated each deprecation removal into its own commit so it might be easiest to review this PR one commit at a time.
Which issue(s) this PR fixes or relates to
#6670
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]