-
Notifications
You must be signed in to change notification settings - Fork 820
Distributor validation #5250
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
Distributor validation #5250
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -49,7 +49,6 @@ var ( | |||
|
||||
// Validation errors. | ||||
errInvalidShardingStrategy = errors.New("invalid sharding strategy") | ||||
errInvalidTenantShardSize = errors.New("invalid tenant shard size, the value must be greater than 0") | ||||
|
||||
// Distributor instance limits errors. | ||||
errTooManyInflightPushRequests = errors.New("too many inflight push requests in distributor") | ||||
|
@@ -176,8 +175,10 @@ func (cfg *Config) Validate(limits validation.Limits) error { | |||
return errInvalidShardingStrategy | ||||
} | ||||
|
||||
if cfg.ShardingStrategy == util.ShardingStrategyShuffle && limits.IngestionTenantShardSize <= 0 { | ||||
return errInvalidTenantShardSize | ||||
if limits.IngestionTenantShardSize <= 0 { | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There could be an scenario where:
Is that supported with this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it does not. Let me check and make necessary changes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make sure it is still supported There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked the case you mentioned @friedrichg and made sure it is still supported with this change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We make sure things are supported adding tests. integration or unit test |
||||
cfg.ShardingStrategy = "default" | ||||
msg := fmt.Sprintf("ingestion_tenant_shard_size is given %d. Suffle sharding is disabled", limits.IngestionTenantShardSize) | ||||
level.Info(util_log.Logger).Log("msg", msg) | ||||
} | ||||
|
||||
haHATrackerConfig := cfg.HATrackerConfig.ToHATrackerConfig() | ||||
|
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 need a separate PR for this. don't fix stuff that is not related to the PR