Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit e0a78db

Browse files
committed
Add ruler limits
Sets default presets for for all the 'users' when it comes to ruler limits.
1 parent 0bf59b4 commit e0a78db

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master / unreleased
44

5+
* [CHANGE] Add default present for ruler limits on all 'user' types.
56
* [CHANGE] Add the default preset 'extra_small_user' and reference it in the CLI flags. This will raise the limits of the 'small_user' preset to the defaults for `ingester.max-samples-per-query` and `ingester.max-series-per-query`. #200
67
* [ENHANCEMENT] Add the Ruler to the read resources dashboard #205
78
* [ENHANCEMENT] Read dashboards now use `cortex_querier_request_duration_seconds` metrics to allow for accurate dashboards when deploying Cortex as a single-binary. #199

cortex/config.libsonnet

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@
294294

295295
ingestion_rate: 10000,
296296
ingestion_burst_size: 200000,
297+
298+
// 300 rules
299+
max_rules_per_rule_group: 15,
300+
max_rule_groups_per_tenant: 20,
297301
},
298302

299303
small_user:: {
@@ -308,6 +312,10 @@
308312

309313
ingestion_rate: 100000,
310314
ingestion_burst_size: 1000000,
315+
316+
// 450 rules
317+
max_rules_per_rule_group: 15,
318+
max_rule_groups_per_tenant: 30,
311319
},
312320

313321
medium_user:: {
@@ -322,6 +330,10 @@
322330

323331
ingestion_rate: 350000, // 350K
324332
ingestion_burst_size: 3500000, // 3.5M
333+
334+
// 600 rules
335+
max_rules_per_rule_group: 15,
336+
max_rule_groups_per_tenant: 40,
325337
},
326338

327339
big_user:: {
@@ -336,6 +348,10 @@
336348

337349
ingestion_rate: 700000, // 700K
338350
ingestion_burst_size: 7000000, // 7M
351+
352+
// 750 rules
353+
max_rules_per_rule_group: 15,
354+
max_rule_groups_per_tenant: 50,
339355
},
340356

341357
super_user:: {
@@ -350,6 +366,10 @@
350366

351367
ingestion_rate: 1500000, // 1.5M
352368
ingestion_burst_size: 15000000, // 15M
369+
370+
// 900 rules
371+
max_rules_per_rule_group: 15,
372+
max_rule_groups_per_tenant: 60,
353373
},
354374

355375
// This user class has limits increased by +50% compared to the previous one.
@@ -365,6 +385,9 @@
365385

366386
ingestion_rate: 2250000, // 2.25M
367387
ingestion_burst_size: 22500000, // 22.5M
388+
389+
max_rules_per_rule_group: 15,
390+
max_rule_groups_per_tenant: 70,
368391
},
369392
},
370393

cortex/ruler.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// Ring Configs
1919
'ruler.enable-sharding': true,
2020
'ruler.ring.consul.hostname': 'consul.%s.svc.cluster.local:8500' % $._config.namespace,
21+
22+
// Limits
23+
'ruler.max-rules-per-rule-group': $._config.limits.max_rules_per_rule_group,
24+
'ruler.max-rule-groups-per-tenant': $._config.limits.max_rule_groups_per_tenant,
2125
},
2226

2327
ruler_container::

0 commit comments

Comments
 (0)