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

changefeedccl: update parallel consumer metrics #89529

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

jayshrivastava
Copy link
Contributor

@jayshrivastava jayshrivastava commented Oct 6, 2022

Previously, both changefeed.nprocs_flush_nanos and changefeed.nprocs_consume_event_nanos were counters that monotonically increased. This was not that useful when determining the average time it takes to consume or flush an event. Changing them to a histogram fixes this issue and allows for percentile values like p90, p99.

This change also updates changefeed.nprocs_in_flight_count to sample values when incrementing inFlight variable. Previously, it was showing up at 0 in the UI. This change makes it show the actual value.

Fixes #89654

Release note: None
Epic: none

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jayshrivastava
Copy link
Contributor Author

These are the results (I bumped the flush frequency super high to observe some flushes during a short initial scan)
image

Previously, both changefeed.nprocs_flush_nanos and
changefeed.nprocs_consume_event_nanos were counters that monotonically
increased. This was not that useful when determining the average time it
takes to consume or flush an event. Changing them to a histogram fixes
this issue and allows for percentile values like p90, p99.

This change also updates changefeed.nprocs_in_flight_count to sample
values when incrementing inFlight variable. Previously, it was
showing up at 0 in the UI. This change makes it show the actual value.

Fixes: cockroachdb#89654

Release note: None
@jayshrivastava jayshrivastava marked this pull request as ready for review October 10, 2022 15:36
@jayshrivastava jayshrivastava requested a review from a team as a code owner October 10, 2022 15:36
@jayshrivastava
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 10, 2022

Build succeeded:

@craig craig bot merged commit 94e2a2b into cockroachdb:master Oct 10, 2022
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.

changefeedccl: nprocs metrics are malformed
3 participants