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: add parallel io metrics #115785

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

jayshrivastava
Copy link
Contributor

@jayshrivastava jayshrivastava commented Dec 7, 2023

This change adds metrics to improve the observability of contention in
the batching webhook and pubsub sinks.

Previously, there were no metrics to count the number of pending and in-flight keys,
so this change adds changefeed.parallel_io_pending_keys and
changefeed.parallel_io_result_queue_nanos to measure them respectively.

This change also adds changefeed.parallel_io_result_queue_nanos to measure
the time which results from the sink must wait in a queue before the changefeed
acks them.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jayshrivastava jayshrivastava changed the title wip - need to add delay to pubsub feed to make the metrics work changefeedccl: add parallel io metrics Dec 11, 2023
@jayshrivastava jayshrivastava force-pushed the pubsub-obs-inflight branch 2 times, most recently from 81467d3 to abeaf47 Compare December 11, 2023 22:03
@jayshrivastava jayshrivastava marked this pull request as ready for review December 11, 2023 22:03
@jayshrivastava jayshrivastava requested a review from a team as a code owner December 11, 2023 22:03
@jayshrivastava jayshrivastava requested review from miretskiy and removed request for a team December 11, 2023 22:03
Copy link
Contributor

@miretskiy miretskiy 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! 0 of 0 LGTMs obtained

@jayshrivastava jayshrivastava force-pushed the pubsub-obs-inflight branch 4 times, most recently from 11a6b32 to 4ca6d2d Compare December 13, 2023 16:56
This change adds metrics to improve the observability of contention in
the batching webhook and pubsub sinks.

Previously, there were no metrics to count the number of pending and in-flight keys,
so this change adds `changefeed.parallel_io_pending_keys` and
`changefeed.parallel_io_result_queue_nanos` to measure them respectively.

This change also adds `changefeed.parallel_io_result_queue_nanos` to measure
the time which results from the sink must wait in a queue before the changefeed
acks them.

Release note: None
Closes: cockroachdb#114140
Epic: None
@jayshrivastava
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Dec 13, 2023

Build succeeded:

@craig craig bot merged commit 52329bc into cockroachdb:master Dec 13, 2023
9 checks passed
@wenyihu6
Copy link
Contributor

blathers backport 23.2

Copy link

blathers-crl bot commented Oct 11, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from b90e6fe to blathers/backport-release-23.2-115785: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.2 failed. See errors above.


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

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.

4 participants