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 metrics to track snapshot queue size #100942

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

miraradeva
Copy link
Contributor

@miraradeva miraradeva commented Apr 7, 2023

Previously, we had metrics to track the number of snapshots waiting in
the snapshot queue; however, snapshots may be of different sizes, so it
is also helpful to track the size of all snapshots in the queue. This
change adds the following metrics to track the total size of all
snapshots waiting in the queue:

range.snapshots.send-queue-bytes
range.snapshots.recv-queue-bytes

Informs: #85528
Release note (ops change): Added two new metrics,
range.snapshots.(send|recv)-queue-bytes, to track the total size of all
snapshots waiting in the snapshot queue.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@miraradeva miraradeva marked this pull request as ready for review April 7, 2023 20:06
@miraradeva miraradeva requested a review from a team April 7, 2023 20:06
@miraradeva miraradeva requested a review from a team as a code owner April 7, 2023 20:06
@miraradeva miraradeva requested a review from kvoli April 7, 2023 20:06
Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice stuff, only minor nit.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @miraradeva)


pkg/kv/kvserver/store_snapshot.go line 81 at r1 (raw file):

// snapshotMetrics contains metrics on the number and size of snapshots in
// progress or in the snapshot queue

nit: add period.

Previously, we had metrics to track the number of snapshots waiting in
the snapshot queue; however, snapshots may be of different sizes, so it
is also helpful to track the size of all snapshots in the queue. This
change adds the following metrics to track the total size of all
snapshots waiting in the queue:

    range.snapshots.send-queue-bytes
    range.snapshots.recv-queue-bytes

Informs: cockroachdb#85528
Release note (ops change): Added two new metrics,
range.snapshots.(send|recv)-queue-bytes, to track the total size of all
snapshots waiting in the snapshot queue.
@miraradeva
Copy link
Contributor Author

bors r=kvoli

@craig
Copy link
Contributor

craig bot commented Apr 11, 2023

Build succeeded:

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.

3 participants