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: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
*[FEATURE] Query Frontend: Support an exemplar federated query when `-tenant-federation.enabled=true`. #6455
24
24
*[FEATURE] Ingester/StoreGateway: Add support for cache regex query matchers via `-ingester.matchers-cache-max-items` and `-blocks-storage.bucket-store.matchers-cache-max-items`. #6477#6491
25
25
*[ENHANCEMENT] Query Frontend: Add a `source` label to query stat metrics. #6470
26
+
*[ENHANCEMENT] Query Frontend: Add a flag `-tenant-federation.max-tenant` to limit the number of tenants for federated query. #6493
26
27
*[ENHANCEMENT] Querier: Add a `-tenant-federation.max-concurrent` flags to configure the number of worker processing federated query and add a `cortex_querier_federated_tenants_per_query` histogram to track the number of tenants per query. #6449
27
28
*[ENHANCEMENT] Query Frontend: Add a number of series in the query response to the query stat log. #6423
28
29
*[ENHANCEMENT] Store Gateway: Add a hedged request to reduce the tail latency. #6388
Copy file name to clipboardExpand all lines: pkg/querier/tenantfederation/tenant_federation.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,12 @@ type Config struct {
9
9
Enabledbool`yaml:"enabled"`
10
10
// MaxConcurrent The number of workers used for processing federated query.
11
11
MaxConcurrentint`yaml:"max_concurrent"`
12
+
// MaxTenant A maximum number of tenants to query at once.
13
+
MaxTenantint`yaml:"max_tenant"`
12
14
}
13
15
14
16
func (cfg*Config) RegisterFlags(f*flag.FlagSet) {
15
17
f.BoolVar(&cfg.Enabled, "tenant-federation.enabled", false, "If enabled on all Cortex services, queries can be federated across multiple tenants. The tenant IDs involved need to be specified separated by a `|` character in the `X-Scope-OrgID` header (experimental).")
16
18
f.IntVar(&cfg.MaxConcurrent, "tenant-federation.max-concurrent", defaultMaxConcurrency, "The number of workers used to process each federated query.")
19
+
f.IntVar(&cfg.MaxTenant, "tenant-federation.max-tenant", 0, "A maximum number of tenants to query at once. 0 means no limit.")
0 commit comments