Skip to content

Commit

Permalink
Update rule limits to be inline with customer expectations
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gouthamve committed Sep 15, 2021
1 parent 9e2f5a3 commit d4f8da6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* [CHANGE] Decreased `-server.grpc-max-concurrent-streams` from 100k to 10k. #369
* [CHANGE] Decreased blocks storage ingesters graceful termination period from 80m to 20m. #369
* [CHANGE] Changed default `job_names` for query-frontend, query-scheduler and querier to match custom deployments too. #376
* [CHANGE] Increase the rules per group and rule groups limits on different tiers. #396
* [ENHANCEMENT] Add overrides config to compactor. This allows setting retention configs per user. #386
* [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
* [ENHANCEMENT] Cortex-mixin: Include `cortex-gw-internal` naming variation in default `gateway` job names. #328
Expand Down
42 changes: 21 additions & 21 deletions cortex/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@
ingestion_rate: 10000,
ingestion_burst_size: 200000,

// 300 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 20,
// 700 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 35,

// No retention for now.
compactor_blocks_retention_period: '0',
Expand All @@ -374,9 +374,9 @@
ingestion_rate: 30000,
ingestion_burst_size: 300000,

// 375 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 25,
// 1000 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 50,
},

small_user:: {
Expand All @@ -392,9 +392,9 @@
ingestion_rate: 100000,
ingestion_burst_size: 1000000,

// 450 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 30,
// 1400 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 70,
},

medium_user:: {
Expand All @@ -410,9 +410,9 @@
ingestion_rate: 350000, // 350K
ingestion_burst_size: 3500000, // 3.5M

// 600 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 40,
// 1800 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 90,
},

big_user:: {
Expand All @@ -428,9 +428,9 @@
ingestion_rate: 700000, // 700K
ingestion_burst_size: 7000000, // 7M

// 750 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 50,
// 2200 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 110,
},

super_user:: {
Expand All @@ -446,9 +446,9 @@
ingestion_rate: 1500000, // 1.5M
ingestion_burst_size: 15000000, // 15M

// 900 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 60,
// 2600 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 130,
},

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

// 1050 rules
ruler_max_rules_per_rule_group: 15,
ruler_max_rule_groups_per_tenant: 70,
// 3000 rules
ruler_max_rules_per_rule_group: 20,
ruler_max_rule_groups_per_tenant: 150,
},
},

Expand Down

0 comments on commit d4f8da6

Please sign in to comment.