You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/frontend/v1/frontend.go
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,25 @@ type Config struct {
37
37
38
38
// RegisterFlags adds the flags required to config this to the given FlagSet.
39
39
func (cfg*Config) RegisterFlags(f*flag.FlagSet) {
40
-
f.IntVar(&cfg.MaxOutstandingPerTenant, "querier.max-outstanding-requests-per-tenant", 100, "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 (user frontend.max-outstanding-requests-per-tenant instead): Maximum number of outstanding requests per tenant per frontend; requests beyond this error with HTTP 429.")
41
41
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.")
42
42
}
43
43
44
44
typeLimitsinterface {
45
45
// Returns max queriers to use per tenant, or 0 if shuffle sharding is disabled.
46
46
MaxQueriersPerUser(userstring) int
47
+
48
+
queue.Limits
49
+
}
50
+
51
+
// MockLimits implements the Limits interface. Used in tests only.
52
+
typeMockLimitsstruct {
53
+
Queriersint
54
+
queue.MockLimits
55
+
}
56
+
57
+
func (lMockLimits) MaxQueriersPerUser(_string) int {
58
+
returnl.Queriers
47
59
}
48
60
49
61
// Frontend queues HTTP requests, dispatches them to backends, and handles retries
Copy file name to clipboardExpand all lines: pkg/scheduler/scheduler.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ type Config struct {
86
86
}
87
87
88
88
func (cfg*Config) RegisterFlags(f*flag.FlagSet) {
89
-
f.IntVar(&cfg.MaxOutstandingPerTenant, "query-scheduler.max-outstanding-requests-per-tenant", 100, "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 (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.")
90
90
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.")
0 commit comments