Skip to content

feat(collector): clean up expired tables during hotspot detection#2369

Open
empiredan wants to merge 3 commits intoapache:masterfrom
empiredan:go-collector-hotspot-retire-expired-tables
Open

feat(collector): clean up expired tables during hotspot detection#2369
empiredan wants to merge 3 commits intoapache:masterfrom
empiredan:go-collector-hotspot-retire-expired-tables

Conversation

@empiredan
Copy link
Contributor

@empiredan empiredan commented Feb 12, 2026

#2358

Currently, when collecting hotspot-related metrics, the Go collector only adds
new tables. If a large number of tables are deleted, the collector may still retain
those deleted tables in memory, leading to excessive memory usage.

This PR introduces a table cleanup mechanism: if no metric data has been collected
for a table over a prolonged period, the table will be removed to release the memory
it occupies.

@empiredan empiredan marked this pull request as ready for review February 13, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant