TECHNOLOGY

Kueue preserves LocalQueue history on stop and removes series on deletion

In this article
THE QUICK TAKE

LocalQueue stop retains cumulative metrics, while deletion cleans them up; 0.20.6 fixes both sides of that lifecycle distinction.

Kueue 0.20.6 separates two lifecycle events that previously produced incorrect metric cleanup. Stopping a LocalQueue wiped cumulative counters and histograms, while deleting an already stopped queue failed to remove its series. Stop preserves the object and its history; deletion ends the object’s metric lifetime. Treating both events as interchangeable made both historical rates and the set of currently exported series harder to interpret.

Stopping is not a counter reset event

PR 18361 describes preservation of counters and histograms across a queue stop. A proposed qualification first generates observable activity, records cumulative values, stops the queue and checks that the history remains exported. Starting with an unused queue would make a reset difficult to distinguish from valid zeros. The test should use the same queue identity throughout and avoid a manager restart, which would introduce a separate process-level metric lifetime into the comparison.

Deletion needs a stopped-object case

The second half of the release note concerns deleting a queue that has already stopped. A direct active-to-deleted test does not cover this sequence. After checking preserved metrics, delete that same stopped object and inspect the exporter for its series. Prometheus may retain historical samples after an exporter stops emitting them, so the immediate assertion belongs at the scrape output boundary. Query retention alone cannot establish whether cleanup in Kueue happened correctly.

Rates depend on truthful counter continuity

An unintended counter wipe can look like a reset to a query engine, while a leaked deleted-object series can look like continuing object presence. These are different analytical errors. A dashboard review can keep object state alongside rate and histogram panels so a deliberate stop is not mistaken for a process restart. The patch does not change Prometheus counter semantics or guarantee continuity across redeployments; it corrects the LocalQueue lifecycle behavior within the exporter.

Recreation is a separate identity decision

A follow-up experiment may recreate a queue with the same name, but its new object lifetime should not be conflated with the stopped predecessor. Record Kubernetes identity as well as metric labels when reviewing that case. The release promises stop preservation and delete cleanup, not a durable metric archive spanning arbitrary deletion and recreation. Keeping these boundaries explicit gives operators a clear explanation for retained history, absent current series and a newly created queue’s subsequent activity.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles