Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageserver/secondary: deregister IO metrics #11283

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VladLazar
Copy link
Contributor

@VladLazar VladLazar commented Mar 17, 2025

Problem

IO metrics for secondary locations do not get deregistered when the timeline is removed.

Summary of changes

Stash the request context to be used for downloads in
SecondaryTimelineDetail. These objects match the lifetime of the
secondary timeline location pretty well.

When the timeline is removed, deregister the metrics too.

Closes #11156

Stash the request context to be used for downloads in
`SecondaryTimelineDetail`. These objects match the lifetime of the
secondary location pretty well.

When the timeline is removed, deregister the metrics too.
Copy link

7975 tests run: 7586 passed, 0 failed, 389 skipped (full report)


Flaky tests (1)

Postgres 17

Code coverage* (full report)

  • functions: 32.3% (8736 of 27026 functions)
  • lines: 48.3% (74857 of 154840 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a763ab2 at 2025-03-17T19:03:25.034Z :recycle:

@VladLazar VladLazar marked this pull request as ready for review March 18, 2025 09:06
@VladLazar VladLazar requested a review from a team as a code owner March 18, 2025 09:06
@VladLazar VladLazar requested a review from problame March 18, 2025 09:06
@VladLazar VladLazar changed the title Vlad/clean up secondary io metrics pageserver/secondary: deregister IO metrics Mar 18, 2025
@VladLazar VladLazar requested a review from jcsp March 19, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pageserver_io_operations_bytes_total not lifecycled correctly for secondaries
2 participants