Skip to content

Commit 56eaa52

Browse files
committed
Improve default tenant sizes
Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent 65ab2e3 commit 56eaa52

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## master
4+
* [ENHANCEMENT] Add bigger tenants and configure default compactor tenant shards
5+
36
## 1.17.1 / 2024-10-23
47
* [CHANGE] Use cortex v1.17.1
58
* [CHANGE] Enable shuffle sharding in compactors

cortex/config.libsonnet

+56
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@
340340
},
341341

342342
super_user:: {
343+
compactor_tenant_shard_size: 2,
343344
max_series_per_metric: 0, // Disabled in favour of the max global limit
344345
max_series_per_user: 0, // Disabled in favour of the max global limit
345346

@@ -358,6 +359,7 @@
358359

359360
// This user class has limits increased by +50% compared to the previous one.
360361
mega_user+:: {
362+
compactor_tenant_shard_size: 2,
361363
max_series_per_metric: 0, // Disabled in favour of the max global limit
362364
max_series_per_user: 0, // Disabled in favour of the max global limit
363365

@@ -373,6 +375,60 @@
373375

374376
ingestion_tenant_shard_size: 180,
375377
},
378+
379+
user_24M:: { // 50% more than previous
380+
compactor_tenant_shard_size: 4,
381+
max_series_per_metric: 0, // Disabled in favour of the max global limit
382+
max_series_per_user: 0, // Disabled in favour of the max global limit
383+
384+
max_global_series_per_user: 24000000, // 24M
385+
max_global_series_per_metric: 2400000, // 2.4M
386+
387+
ingestion_rate: 3000000, // 3M
388+
ingestion_burst_size: 30000000, // 30M
389+
390+
// 3400 rules
391+
ruler_max_rules_per_rule_group: 20,
392+
ruler_max_rule_groups_per_tenant: 170,
393+
394+
ingestion_tenant_shard_size: 270,
395+
},
396+
397+
user_32M:: { // 33% more than previous
398+
compactor_tenant_shard_size: 4,
399+
max_series_per_metric: 0, // Disabled in favour of the max global limit
400+
max_series_per_user: 0, // Disabled in favour of the max global limit
401+
402+
max_global_series_per_user: 32000000, // 32M
403+
max_global_series_per_metric: 3200000, // 3.2M
404+
405+
ingestion_rate: 4500000, // 4.5M
406+
ingestion_burst_size: 45000000, // 45M
407+
408+
// 3800 rules
409+
ruler_max_rules_per_rule_group: 20,
410+
ruler_max_rule_groups_per_tenant: 190,
411+
412+
ingestion_tenant_shard_size: 360,
413+
},
414+
415+
user_48M:: { // 50% more than previous
416+
compactor_tenant_shard_size: 8,
417+
max_series_per_metric: 0, // Disabled in favour of the max global limit
418+
max_series_per_user: 0, // Disabled in favour of the max global limit
419+
420+
max_global_series_per_user: 48000000, // 48M
421+
max_global_series_per_metric: 4800000, // 4.8M
422+
423+
ingestion_rate: 6000000, // 6M
424+
ingestion_burst_size: 60000000, // 60M
425+
426+
// 4200 rules
427+
ruler_max_rules_per_rule_group: 20,
428+
ruler_max_rule_groups_per_tenant: 210,
429+
430+
ingestion_tenant_shard_size: 540,
431+
},
376432
},
377433

378434
// if not empty, passed to overrides.yaml as another top-level field

0 commit comments

Comments
 (0)