making query ingesters config per tenant#7323
making query ingesters config per tenant#7323Shvejan wants to merge 3 commits intocortexproject:masterfrom
Conversation
| queryStoreAfter := time.Duration(l.QueryStoreAfter) | ||
| shuffleShardingLookback := time.Duration(l.ShuffleShardingIngestersLookbackPeriod) | ||
|
|
||
| if queryIngestersWithin > 0 && closeIdleTSDBTimeout > 0 && queryIngestersWithin >= closeIdleTSDBTimeout { |
There was a problem hiding this comment.
So does it mean we need to make closeIdleTSDBTimeout per tenant as well?
There was a problem hiding this comment.
I think we can leave it for now and expose it if needed later.
| queryStoreAfter := time.Duration(l.QueryStoreAfter) | ||
| shuffleShardingLookback := time.Duration(l.ShuffleShardingIngestersLookbackPeriod) | ||
|
|
||
| if queryIngestersWithin > 0 && closeIdleTSDBTimeout > 0 && queryIngestersWithin >= closeIdleTSDBTimeout { |
There was a problem hiding this comment.
I think we can leave it for now and expose it if needed later.
CHANGELOG.md
Outdated
| * [ENHANCEMENT] Compactor: Add partition group creation time to visit marker. #7217 | ||
| * [ENHANCEMENT] Compactor: Add concurrency for partition cleanup and mark block for deletion #7246 | ||
| * [ENHANCEMENT] Distributor: Validate metric name before removing empty labels. #7253 | ||
| * [ENHANCEMENT] Make query ingester within a per tenant configuration. #7160 |
There was a problem hiding this comment.
We made more configurations to be per tenant. Let's mention all of them. It is also a change I think. Even though it is backward compatible
pkg/distributor/query.go
Outdated
| if d.cfg.ShardingStrategy == util.ShardingStrategyShuffle { | ||
| shardSize := d.limits.IngestionTenantShardSize(userID) | ||
| lookbackPeriod := d.cfg.ShuffleShardingLookbackPeriod | ||
| lookbackPeriod := d.limits.ShuffleShardingIngestersLookbackPeriod |
There was a problem hiding this comment.
Is this correct? We need to get it per tenant
976cee4 to
10517b0
Compare
Signed-off-by: Shvejan Mutheboyina <shvejan@amazon.com>
Signed-off-by: Shvejan Mutheboyina <shvejan@amazon.com>
Signed-off-by: Shvejan Mutheboyina <shvejan@amazon.com>
10517b0 to
062c66b
Compare
|
@Shvejan This test failure is related I believe. This is because we changed the type from |
What this PR does:
This pr makes the following 3 configurations per tenant
Which issue(s) this PR fixes:
Fixes #7160
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]