You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Run local compactions on our own schedule and goroutines.
Signed-off-by: Peter Štibraný <[email protected]>
* Fix and add some tests to validation.
Signed-off-by: Peter Štibraný <[email protected]>
* Refactor common code into runConcurrentUserWorkers method.
Signed-off-by: Peter Štibraný <[email protected]>
* Tied compaction and shipping together.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated CHANGELOG.md
Signed-off-by: Peter Štibraný <[email protected]>
* Updated CHANGELOG.md
Signed-off-by: Peter Štibraný <[email protected]>
* Updated documentation.
Signed-off-by: Peter Štibraný <[email protected]>
* Merge blocks.
Signed-off-by: Peter Štibraný <[email protected]>
* Revert "Tied compaction and shipping together."
This reverts commit ac372e9f065f00e909f67d7c3b3557e2974f311c.
Signed-off-by: Peter Štibraný <[email protected]>
* Revert "Updated documentation."
This reverts commit 9adb4cb9b4273ac189a3bb0478090966a0db67ec.
Signed-off-by: Peter Štibraný <[email protected]>
* Documentation
Signed-off-by: Peter Štibraný <[email protected]>
* Fixed documentation.
Signed-off-by: Peter Štibraný <[email protected]>
* Renamed TSDB head compaction options to use "head" prefix.
To avoid confusion with compactor, which also has "compaction_interval"
config field.
Signed-off-by: Peter Štibraný <[email protected]>
* Expose compaction metrics.
Signed-off-by: Peter Štibraný <[email protected]>
* Moved compaction metrics to TSDB state.
They are now updated in Cortex code, when we call compaction.
Signed-off-by: Peter Štibraný <[email protected]>
* Decrease compaction interval.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated help and changelog entry.
Signed-off-by: Peter Štibraný <[email protected]>
* Fix default value.
Signed-off-by: Peter Štibraný <[email protected]>
* Review feedback:
- decrease default to 1 min
- compaction cannot be disabled
- compaction interval must be greater than 0, and <= 5 mins
Signed-off-by: Peter Štibraný <[email protected]>
* Fix CHANGELOG.md
Signed-off-by: Peter Štibraný <[email protected]>
* Fix formatting to make lint happy.
Signed-off-by: Peter Štibraný <[email protected]>
*[CHANGE] Updated Prometheus dependency to v2.16.0. This Prometheus version uses Active Query Tracker to limit concurrent queries. In order to keep `-querier.max-concurrent` working, Active Query Tracker is enabled by default, and is configured to store its data to `active-query-tracker` directory (relative to current directory when Cortex started). This can be changed by using `-querier.active-query-tracker-dir` option. Purpose of Active Query Tracker is to log queries that were running when Cortex crashes. This logging happens on next Cortex start. #2088
26
+
*[CHANGE] Experimental TSDB: TSDB head compaction interval and concurrency is now configurable (defaults to 1 min interval and 5 concurrent head compactions). New options: `-experimental.tsdb.head-compaction-interval` and `-experimental.tsdb.head-compaction-concurrency`. #2172
26
27
*[FEATURE] Added a read-only local alertmanager config store using files named corresponding to their tenant id. #2125
27
28
*[FEATURE] Added user sub rings to distribute users to a subset of ingesters. #1947
f.IntVar(&cfg.ShipConcurrency, "experimental.tsdb.ship-concurrency", 10, "Maximum number of tenants concurrently shipping blocks to the storage.")
109
113
f.StringVar(&cfg.Backend, "experimental.tsdb.backend", "s3", "TSDB storage backend to use")
110
114
f.IntVar(&cfg.MaxTSDBOpeningConcurrencyOnStartup, "experimental.tsdb.max-tsdb-opening-concurrency-on-startup", 10, "limit the number of concurrently opening TSDB's on startup")
115
+
f.DurationVar(&cfg.HeadCompactionInterval, "experimental.tsdb.head-compaction-interval", 1*time.Minute, "How frequently does Cortex try to compact TSDB head. Block is only created if data covers smallest block range. Must be greater than 0 and max 5 minutes.")
116
+
f.IntVar(&cfg.HeadCompactionConcurrency, "experimental.tsdb.head-compaction-concurrency", 5, "Maximum number of tenants concurrently compacting TSDB head into a new block")
0 commit comments