Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#213 from grafana/ruler-limits
Browse files Browse the repository at this point in the history
Add ruler limits
  • Loading branch information
gotjosh authored Nov 18, 2020
2 parents 8ff9cbb + fdd325f commit 45e900e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions operations/mimir/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@

ingestion_rate: 10000,
ingestion_burst_size: 200000,

// 300 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 20,
},

small_user:: {
Expand All @@ -307,6 +311,10 @@

ingestion_rate: 100000,
ingestion_burst_size: 1000000,

// 450 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 30,
},

medium_user:: {
Expand All @@ -321,6 +329,10 @@

ingestion_rate: 350000, // 350K
ingestion_burst_size: 3500000, // 3.5M

// 600 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 40,
},

big_user:: {
Expand All @@ -335,6 +347,10 @@

ingestion_rate: 700000, // 700K
ingestion_burst_size: 7000000, // 7M

// 750 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 50,
},

super_user:: {
Expand All @@ -349,6 +365,10 @@

ingestion_rate: 1500000, // 1.5M
ingestion_burst_size: 15000000, // 15M

// 900 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 60,
},

// This user class has limits increased by +50% compared to the previous one.
Expand All @@ -364,6 +384,10 @@

ingestion_rate: 2250000, // 2.25M
ingestion_burst_size: 22500000, // 22.5M

// 1050 rules
max_rules_per_rule_group: 15,
max_rule_groups_per_tenant: 70,
},
},

Expand Down
4 changes: 4 additions & 0 deletions operations/mimir/ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
// Ring Configs
'ruler.enable-sharding': true,
'ruler.ring.consul.hostname': 'consul.%s.svc.cluster.local:8500' % $._config.namespace,

// Limits
'ruler.max-rules-per-rule-group': $._config.limits.max_rules_per_rule_group,
'ruler.max-rule-groups-per-tenant': $._config.limits.max_rule_groups_per_tenant,
},

ruler_container::
Expand Down

0 comments on commit 45e900e

Please sign in to comment.