pageserver: add supplementary branch usage stats #8131
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The metrics we have today aren't convenient for planning around the impact of timeline archival on costs.
Closes: #8108
Summary of changes
pageserver_archive_size
, which indicates the logical bytes of data which we would expect to write into an archived branch.pageserver_pitr_history_size
, which indicates the distance between last_record_lsn and the PITR cutoff.These metrics are somewhat temporary: when we implement #8088 and associated consumption metric changes, these will reach a final form. For now, an "archived" branch is just any branch outside of its parent's PITR window: later, archival will become an explicit state (which will usually correspond to falling outside the parent's PITR window).
The overall volume of timeline metrics is something to watch, but we are removing many more in #8245 than this PR is adding.
Checklist before requesting a review
Checklist before merging