Skip to content

Commit 13df0e2

Browse files
committed
a
1 parent a6e7fdf commit 13df0e2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/frontend/v1/frontend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type Config struct {
3737

3838
// RegisterFlags adds the flags required to config this to the given FlagSet.
3939
func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
40-
f.IntVar(&cfg.MaxOutstandingPerTenant, "querier.max-outstanding-requests-per-tenant", 0, "Deprecated (user frontend.max-outstanding-requests-per-tenant instead): Maximum number of outstanding requests per tenant per frontend; requests beyond this error with HTTP 429.")
40+
f.IntVar(&cfg.MaxOutstandingPerTenant, "querier.max-outstanding-requests-per-tenant", 0, "Deprecated (use frontend.max-outstanding-requests-per-tenant instead): Maximum number of outstanding requests per tenant per frontend; requests beyond this error with HTTP 429.")
4141
f.DurationVar(&cfg.QuerierForgetDelay, "query-frontend.querier-forget-delay", 0, "If a querier disconnects without sending notification about graceful shutdown, the query-frontend will keep the querier in the tenant's shard until the forget delay has passed. This feature is useful to reduce the blast radius when shuffle-sharding is enabled.")
4242
}
4343

pkg/scheduler/queue/user_queues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ func (q *queues) getOrAddQueue(userID string, maxQueriers int) chan Request {
117117

118118
if uq == nil {
119119
queueSize := q.limits.MaxOutstandingPerTenant(userID)
120-
// 0 is the default value. If the flag is set then we
121-
// use the old flag for compatibility reason.
120+
// 0 is the default value of the flag. If the old flag is set
121+
// then we use its value for compatibility reason.
122122
if q.maxUserQueueSize != 0 {
123123
queueSize = q.maxUserQueueSize
124124
}

pkg/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type Config struct {
8686
}
8787

8888
func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
89-
f.IntVar(&cfg.MaxOutstandingPerTenant, "query-scheduler.max-outstanding-requests-per-tenant", 0, "Deprecated (user frontend.max-outstanding-requests-per-tenant instead): Maximum number of outstanding requests per tenant per query-scheduler. In-flight requests above this limit will fail with HTTP response status code 429.")
89+
f.IntVar(&cfg.MaxOutstandingPerTenant, "query-scheduler.max-outstanding-requests-per-tenant", 0, "Deprecated (use frontend.max-outstanding-requests-per-tenant instead): Maximum number of outstanding requests per tenant per query-scheduler. In-flight requests above this limit will fail with HTTP response status code 429.")
9090
f.DurationVar(&cfg.QuerierForgetDelay, "query-scheduler.querier-forget-delay", 0, "If a querier disconnects without sending notification about graceful shutdown, the query-scheduler will keep the querier in the tenant's shard until the forget delay has passed. This feature is useful to reduce the blast radius when shuffle-sharding is enabled.")
9191
cfg.GRPCClientConfig.RegisterFlagsWithPrefix("query-scheduler.grpc-client-config", f)
9292
}

0 commit comments

Comments
 (0)