Skip to content

Commit d4f8da6

Browse files
committed
Update rule limits to be inline with customer expectations
We built the initial rules on guesswork and now we're updating them based on what the customers are asking for. Further, the ruler can be horizontally scaled and we're happy letting our users have more rules! Signed-off-by: Goutham Veeramachaneni <[email protected]>
1 parent 9e2f5a3 commit d4f8da6

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* [CHANGE] Decreased `-server.grpc-max-concurrent-streams` from 100k to 10k. #369
2626
* [CHANGE] Decreased blocks storage ingesters graceful termination period from 80m to 20m. #369
2727
* [CHANGE] Changed default `job_names` for query-frontend, query-scheduler and querier to match custom deployments too. #376
28+
* [CHANGE] Increase the rules per group and rule groups limits on different tiers. #396
2829
* [ENHANCEMENT] Add overrides config to compactor. This allows setting retention configs per user. #386
2930
* [ENHANCEMENT] cortex-mixin: Make `cluster_namespace_deployment:kube_pod_container_resource_requests_{cpu_cores,memory_bytes}:sum` backwards compatible with `kube-state-metrics` v2.0.0. #317
3031
* [ENHANCEMENT] Cortex-mixin: Include `cortex-gw-internal` naming variation in default `gateway` job names. #328

cortex/config.libsonnet

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@
353353
ingestion_rate: 10000,
354354
ingestion_burst_size: 200000,
355355

356-
// 300 rules
357-
ruler_max_rules_per_rule_group: 15,
358-
ruler_max_rule_groups_per_tenant: 20,
356+
// 700 rules
357+
ruler_max_rules_per_rule_group: 20,
358+
ruler_max_rule_groups_per_tenant: 35,
359359

360360
// No retention for now.
361361
compactor_blocks_retention_period: '0',
@@ -374,9 +374,9 @@
374374
ingestion_rate: 30000,
375375
ingestion_burst_size: 300000,
376376

377-
// 375 rules
378-
ruler_max_rules_per_rule_group: 15,
379-
ruler_max_rule_groups_per_tenant: 25,
377+
// 1000 rules
378+
ruler_max_rules_per_rule_group: 20,
379+
ruler_max_rule_groups_per_tenant: 50,
380380
},
381381

382382
small_user:: {
@@ -392,9 +392,9 @@
392392
ingestion_rate: 100000,
393393
ingestion_burst_size: 1000000,
394394

395-
// 450 rules
396-
ruler_max_rules_per_rule_group: 15,
397-
ruler_max_rule_groups_per_tenant: 30,
395+
// 1400 rules
396+
ruler_max_rules_per_rule_group: 20,
397+
ruler_max_rule_groups_per_tenant: 70,
398398
},
399399

400400
medium_user:: {
@@ -410,9 +410,9 @@
410410
ingestion_rate: 350000, // 350K
411411
ingestion_burst_size: 3500000, // 3.5M
412412

413-
// 600 rules
414-
ruler_max_rules_per_rule_group: 15,
415-
ruler_max_rule_groups_per_tenant: 40,
413+
// 1800 rules
414+
ruler_max_rules_per_rule_group: 20,
415+
ruler_max_rule_groups_per_tenant: 90,
416416
},
417417

418418
big_user:: {
@@ -428,9 +428,9 @@
428428
ingestion_rate: 700000, // 700K
429429
ingestion_burst_size: 7000000, // 7M
430430

431-
// 750 rules
432-
ruler_max_rules_per_rule_group: 15,
433-
ruler_max_rule_groups_per_tenant: 50,
431+
// 2200 rules
432+
ruler_max_rules_per_rule_group: 20,
433+
ruler_max_rule_groups_per_tenant: 110,
434434
},
435435

436436
super_user:: {
@@ -446,9 +446,9 @@
446446
ingestion_rate: 1500000, // 1.5M
447447
ingestion_burst_size: 15000000, // 15M
448448

449-
// 900 rules
450-
ruler_max_rules_per_rule_group: 15,
451-
ruler_max_rule_groups_per_tenant: 60,
449+
// 2600 rules
450+
ruler_max_rules_per_rule_group: 20,
451+
ruler_max_rule_groups_per_tenant: 130,
452452
},
453453

454454
// This user class has limits increased by +50% compared to the previous one.
@@ -465,9 +465,9 @@
465465
ingestion_rate: 2250000, // 2.25M
466466
ingestion_burst_size: 22500000, // 22.5M
467467

468-
// 1050 rules
469-
ruler_max_rules_per_rule_group: 15,
470-
ruler_max_rule_groups_per_tenant: 70,
468+
// 3000 rules
469+
ruler_max_rules_per_rule_group: 20,
470+
ruler_max_rule_groups_per_tenant: 150,
471471
},
472472
},
473473

0 commit comments

Comments
 (0)