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

kvserver: add storage.sstable.zombie.bytes metric #122152

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Apr 10, 2024

Add a new timeseries metric that provides visibility into the volume of data that exists in sstables that are not part of the most recent version of the LSM.

Epic: none
Informs #121935.
Informs #122139.
Informs cockroachdb/pebble#3500.
Close #122110.
Release note (ops change): Adds a new timeseries metric storage.sstable.zombie.bytes.

Add a new timeseries metric that provides visibility into the volume of data
that exists in sstables that are not part of the most recent version of the
LSM.

Epic: none
Informs cockroachdb#121935.
Informs cockroachdb#122139.
Informs cockroachdb/pebble#3500.
Close cockroachdb#122110.
Release note (ops change): Adds a new timeseries metric
storage.sstable.zombie.bytes.
@jbowens jbowens added the backport-24.1.x Flags PRs that need to be backported to 24.1. label Apr 10, 2024
@jbowens jbowens requested a review from a team April 10, 2024 20:27
@jbowens jbowens requested a review from a team as a code owner April 10, 2024 20:27
@jbowens jbowens requested a review from itsbilal April 10, 2024 20:27
Copy link

blathers-crl bot commented Apr 10, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal and @jbowens)


pkg/kv/kvserver/metrics.go line 3736 at r1 (raw file):

	sm.BatchCommitWALRotWaitDuration.Update(int64(m.BatchCommitStats.WALRotationDuration))
	sm.BatchCommitCommitWaitDuration.Update(int64(m.BatchCommitStats.CommitWaitDuration))
	sm.SSTableZombieBytes.Update(int64(m.Table.ZombieSize))

.Table.Local.ZombieSize

Copy link
Collaborator Author

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal and @RaduBerinde)


pkg/kv/kvserver/metrics.go line 3736 at r1 (raw file):

Previously, RaduBerinde wrote…

.Table.Local.ZombieSize

I debated this and thought we'd prefer the wider, more all-encompassing one. Even with disaggregated storage, we may care about zombie sstables in blob storage.

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal)


pkg/kv/kvserver/metrics.go line 3736 at r1 (raw file):

Previously, jbowens (Jackson Owens) wrote…

I debated this and thought we'd prefer the wider, more all-encompassing one. Even with disaggregated storage, we may care about zombie sstables in blob storage.

👍

@jbowens
Copy link
Collaborator Author

jbowens commented Apr 11, 2024

TFTR!

bors r=RaduBerinde

@craig craig bot merged commit 9a247ec into cockroachdb:master Apr 11, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.1.x Flags PRs that need to be backported to 24.1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: add timeseries metric for sum of zombie sstable sizes
3 participants