Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 8f9815a

Browse files
authored
Merge pull request #185 from grafana/reduce-default-series-limit
Lower default ingestion limits and create a new overrides user
2 parents 03debc3 + 80bf434 commit 8f9815a

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

CHANGELOG.md

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

33
## master / unreleased
44

5+
* [CHANGE] Lower the default overrides configs for ingestion and create a new overrides user out of the previous config #183
56
* [CHANGE] The project is now licensed with Apache-2.0 license. #169
67
* [CHANGE] Add overrides config to tsdb store-gateway. #167
78
* [CHANGE] Ingesters now default to running as `StatefulSet` with WAL enabled. It is controlled by the config `$._config.ingester_deployment_without_wal` which is `false` by default. Setting the config to `true` will yield the old behaviour (stateless `Deployment` without WAL enabled). #72

cortex/config.libsonnet

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,20 +280,34 @@
280280
// These are the defaults. Distributor limits will be 5x (#replicas) higher,
281281
// ingester limits are 6s (#replicas) / 3x (#replication factor) higher.
282282
//
283-
// small_user: {
284-
// ingestion_rate: 100,000
285-
// ingestion_burst_size: 1,000,000
283+
// extra_small_user: {
284+
// ingestion_rate: 10,000
285+
// ingestion_burst_size: 200,000
286286
//
287287
// max_series_per_user: 0 (disabled)
288288
// max_series_per_metric: 0 (disabled)
289289
//
290-
// max_global_series_per_user: 1,000,000
291-
// max_global_series_per_metric: 100,000
290+
// max_global_series_per_user: 100,000
291+
// max_global_series_per_metric: 20,000
292292
//
293293
// max_series_per_query: 10,000
294294
// max_samples_per_query: 100,000
295295
// },
296296

297+
small_user:: {
298+
ingestion_rate: 100000,
299+
ingestion_burst_size: 1000000,
300+
301+
max_series_per_user: 0,
302+
max_series_per_metric: 0,
303+
304+
max_global_series_per_user: 1000000,
305+
max_global_series_per_metric: 100000,
306+
307+
max_series_per_query: 10000,
308+
max_samples_per_query: 100000,
309+
},
310+
297311
medium_user:: {
298312
max_series_per_metric: 0, // Disabled in favour of the max global limit
299313
max_series_per_user: 0, // Disabled in favour of the max global limit

cortex/distributor.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
'server.grpc.keepalive.max-connection-idle': '1m',
3030

3131
'distributor.ingestion-rate-limit-strategy': 'global',
32-
'distributor.ingestion-rate-limit': 100000, // 100K
33-
'distributor.ingestion-burst-size': 1000000, // 1M
32+
'distributor.ingestion-rate-limit': 10000, // 10K
33+
'distributor.ingestion-burst-size': 200000, // 200k
3434

3535
// The ingestion rate global limit requires the distributors to form a ring.
3636
'distributor.ring.consul.hostname': 'consul.%s.svc.cluster.local:8500' % $._config.namespace,

cortex/ingester.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
// Limits config.
2424
'ingester.max-chunk-idle': $._config.max_chunk_idle,
25-
'ingester.max-global-series-per-user': 1000000, // 1M
26-
'ingester.max-global-series-per-metric': 100000, // 100K
25+
'ingester.max-global-series-per-user': 100000, // 100K
26+
'ingester.max-global-series-per-metric': 20000, // 20K
2727
'ingester.max-series-per-user': 0, // Disabled in favour of the max global limit
2828
'ingester.max-series-per-metric': 0, // Disabled in favour of the max global limit
2929
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',

0 commit comments

Comments
 (0)