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
[r389] Revert ingester Kafka record timestamps for active series (#14611, #14744) (#15038)
Backport 1989c26 from #15036
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes the time basis for active-series purging/loading in
ingest-storage clusters, which can affect metrics accuracy and
early-compaction decisions under Kafka lag or replay.
>
> **Overview**
> Reverts the prior **Kafka record timestamp–driven** active-series
logic for ingest-storage mode, removing ingester state used to track
latest Kafka time and inline Kafka-time purges.
>
> Active-series purging/loading now uses **wall-clock `time.Now()`
only** (including early-compaction estimations), and the
`cortex_ingester_active_series_loading` transition is handled by the
metrics updater ticker rather than Kafka-time bookkeeping.
>
> Removes Kafka record timestamp propagation via context in the ingest
`PusherConsumer` and deletes the related unit/integration tests and
changelog entry for the reverted enhancement.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
8604f22. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,6 @@
148
148
* [ENHANCEMENT] Querier: Add new config flag `querier.enable-delayed-name-removal-prometheus-engine` to enable delayed name removal for Prometheus engine. #14349
149
149
* [ENHANCEMENT] Ingester: reduce heap usage during streaming chunk queries by releasing series label memory after each batch is sent rather than holding it until chunk streaming completes. #14422
150
150
* [ENHANCEMENT] Ingester: Eliminate 20-minute active series metrics loading period when custom tracker or cost attribution configuration changes. Active series counts are now immediately correct after a config reload. #14537
151
-
* [ENHANCEMENT] Ingester: Use Kafka record timestamps instead of wall-clock time for active series tracking, grace period validation, and purging when ingest storage is enabled. This prevents premature purging or stale series caused by lag between record production and consumption. #14611 #14744
152
151
* [ENHANCEMENT] Ingester: Export `cortex_ingester_active_series_loading` gauge metric that is `1` while active series counts are still warming up after ingester startup, and `0` once they are accurate (after IdleTimeout has elapsed). #14783
153
152
* [ENHANCEMENT] Ingest storage: Skip kotel tracing hooks for unsampled traces in the franz-go Kafka client, significantly reducing CPU and memory overhead. #14852
154
153
* [ENHANCEMENT] Distributor: Reduced CPU utilization when writing to ingest storage with a large number of partitions by batching all partitions into a single Kafka produce call instead of one per partition. #14898
0 commit comments