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: add metrics for unknown ClearVmBits pages #9911

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Nov 27, 2024

Problem

When ingesting implicit ClearVmBits operations, we silently drop the writes if the relation or page is unknown. There are implicit assumptions around VM pages wrt. explicit/implicit updates, sharding, and relation sizes, which can possibly drop writes incorrectly. Adding a few metrics will allow us to investigate further and tighten up the logic.

Touches #9855.

Summary of changes

Add a pageserver_wal_ingest_clear_vm_bits_unknown metric to record dropped ClearVmBits writes.

Also add comments clarifying the behavior of relation sizes on non-zero shards.

Copy link

github-actions bot commented Nov 27, 2024

6967 tests run: 6659 passed, 0 failed, 308 skipped (full report)


Flaky tests (1)

Postgres 17

Code coverage* (full report)

  • functions: 30.6% (7979 of 26062 functions)
  • lines: 48.6% (63354 of 130475 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f94ee7a at 2024-11-27T17:28:31.342Z :recycle:

@erikgrinaker erikgrinaker added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit cc37fa0 Nov 27, 2024
82 checks passed
@erikgrinaker erikgrinaker deleted the erik/clear-vm-bits-unknown-metrics branch November 27, 2024 17:17
erikgrinaker added a commit that referenced this pull request Nov 29, 2024
## Problem

When ingesting implicit `ClearVmBits` operations, we silently drop the
writes if the relation or page is unknown. There are implicit
assumptions around VM pages wrt. explicit/implicit updates, sharding,
and relation sizes, which can possibly drop writes incorrectly. Adding a
few metrics will allow us to investigate further and tighten up the
logic.

Touches #9855.

## Summary of changes

Add a `pageserver_wal_ingest_clear_vm_bits_unknown` metric to record
dropped `ClearVmBits` writes.

Also add comments clarifying the behavior of relation sizes on non-zero
shards.
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.

2 participants