Skip to content

Commit 3829a81

Browse files
authored
Add default tenant shard sizes (#31)
Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent 31112a4 commit 3829a81

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

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

33
## master / unreleased
4+
* [CHANGE] Add default tenant shard sizes
45
* [CHANGE] Use cortex v1.15.3
56
* [CHANGE] Azure storage endpoint suffix is set to `blob.core.windows.net` for backward compatibility
67

cortex/config.libsonnet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@
260260

261261
// No retention for now.
262262
compactor_blocks_retention_period: '0',
263+
264+
ingestion_tenant_shard_size: 3,
263265
},
264266

265267
medium_small_user:: {
@@ -277,6 +279,8 @@
277279
// 1000 rules
278280
ruler_max_rules_per_rule_group: 20,
279281
ruler_max_rule_groups_per_tenant: 50,
282+
283+
ingestion_tenant_shard_size: 9,
280284
},
281285

282286
small_user:: {
@@ -294,6 +298,8 @@
294298
// 1400 rules
295299
ruler_max_rules_per_rule_group: 20,
296300
ruler_max_rule_groups_per_tenant: 70,
301+
302+
ingestion_tenant_shard_size: 15,
297303
},
298304

299305
medium_user:: {
@@ -311,6 +317,8 @@
311317
// 1800 rules
312318
ruler_max_rules_per_rule_group: 20,
313319
ruler_max_rule_groups_per_tenant: 90,
320+
321+
ingestion_tenant_shard_size: 30,
314322
},
315323

316324
big_user:: {
@@ -328,6 +336,8 @@
328336
// 2200 rules
329337
ruler_max_rules_per_rule_group: 20,
330338
ruler_max_rule_groups_per_tenant: 110,
339+
340+
ingestion_tenant_shard_size: 60,
331341
},
332342

333343
super_user:: {
@@ -345,6 +355,8 @@
345355
// 2600 rules
346356
ruler_max_rules_per_rule_group: 20,
347357
ruler_max_rule_groups_per_tenant: 130,
358+
359+
ingestion_tenant_shard_size: 120,
348360
},
349361

350362
// This user class has limits increased by +50% compared to the previous one.
@@ -363,6 +375,8 @@
363375
// 3000 rules
364376
ruler_max_rules_per_rule_group: 20,
365377
ruler_max_rule_groups_per_tenant: 150,
378+
379+
ingestion_tenant_shard_size: 180,
366380
},
367381
},
368382

0 commit comments

Comments
 (0)