Skip to content

Commit 6f6cfbb

Browse files
committed
add changelog
Signed-off-by: Ben Ye <benye@amazon.com>
1 parent b15eea3 commit 6f6cfbb

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44
* [ENHANCEMENT] Update Go version to 1.19.3. #4988
55
* [ENHANCEMENT] Querier: limit series query to only ingesters if `start` param is not specified. #4976
6+
* [ENHANCEMENT] Query-frontend/scheduler: add a new limit `frontend.max-outstanding-requests-per-tenant` for configuring queue size per tenant. Started deprecating two flags `-query-scheduler.max-outstanding-requests-per-tenant` and `-querier.max-outstanding-requests-per-tenant`, and change their value default to 0. Now if both the old flag and new flag are specified, the old flag's queue size will be picked. #5005
67
* [FEATURE] Querier/Query Frontend: support Prometheus /api/v1/status/buildinfo API. #4978
78
* [FEATURE] Ingester: Add active series to all_user_stats page. #4972
89
* [FEATURE] Query Frontend: Log query params in query frontend even if error happens. #5005

docs/configuration/config-file-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ runtime_config:
172172
[memberlist: <memberlist_config>]
173173

174174
query_scheduler:
175-
# Deprecated (user frontend.max-outstanding-requests-per-tenant instead):
175+
# Deprecated (use frontend.max-outstanding-requests-per-tenant instead):
176176
# Maximum number of outstanding requests per tenant per query-scheduler.
177177
# In-flight requests above this limit will fail with HTTP response status code
178178
# 429.
@@ -917,9 +917,9 @@ The `query_frontend_config` configures the Cortex query-frontend.
917917
# CLI flag: -frontend.query-stats-enabled
918918
[query_stats_enabled: <boolean> | default = false]
919919
920-
# Deprecated (user frontend.max-outstanding-requests-per-tenant instead):
921-
# Maximum number of outstanding requests per tenant per frontend; requests
922-
# beyond this error with HTTP 429.
920+
# Deprecated (use frontend.max-outstanding-requests-per-tenant instead): Maximum
921+
# number of outstanding requests per tenant per frontend; requests beyond this
922+
# error with HTTP 429.
923923
# CLI flag: -querier.max-outstanding-requests-per-tenant
924924
[max_outstanding_per_tenant: <int> | default = 0]
925925

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) and will be removed in v1.17.0: 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) and will be removed in v1.17.0: 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)