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

ui: use max aggregator for commit latency on changefeed dashboard #120787

Merged

Conversation

rharding6373
Copy link
Collaborator

@rharding6373 rharding6373 commented Mar 20, 2024

Previously, the commit latency in the changefeed dashboard in the db console would be aggregated by sum across all nodes. This was confusing for users who might see unexpectedly high commit latency.

In this change, we use max aggregation for the commit latency so that users see the max commit latency from all the nodes instead of the sum. This provides more useful observability into changefeed behavior.

Fixes: #119246
Fixes: #112947
Epic: None

Release note (ui change): The "Commit Latency" chart in the changefeed dashboard now aggregates by max instead of by sum for multi-node changefeeds. This more accurately reflects the amount of time for events to be acknowledged by the downstream sink.

@rharding6373 rharding6373 requested a review from a team as a code owner March 20, 2024 22:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rharding6373 rharding6373 added the backport-23.2.x Flags PRs that need to be backported to 23.2. label Mar 20, 2024
@rharding6373 rharding6373 force-pushed the 20240320_commit_latency_119246 branch from 7b1cc5c to cf91f0d Compare March 21, 2024 15:44
@rharding6373 rharding6373 requested review from a team as code owners March 21, 2024 15:44
Previously, the commit latency in the changefeed dashboard in the
db console would be aggregated by sum across all nodes. This was
confusing for users who might see unexpectedly high commit latency.

In this change, we use max aggregation for the commit latency so
that users see the max commit latency from all the nodes instead
of the sum. This provides more useful observability into changefeed
behavior.

Fixes: cockroachdb#119246
Fixes: cockroachdb#112947
Epic: None

Release note (ui change): The "Commit Latency" chart in the changefeed
dashboard now aggregates by max instead of by sum for multi-node
changefeeds. This more accurately reflects the amount of time for
events to be acknowledged by the downstream sink.
@rharding6373 rharding6373 force-pushed the 20240320_commit_latency_119246 branch from cf91f0d to 072fd4e Compare March 25, 2024 19:50
@rharding6373 rharding6373 removed request for a team March 25, 2024 19:50
Copy link
Contributor

@wenyihu6 wenyihu6 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 @rharding6373)


pkg/ui/workspaces/db-console/src/views/cluster/containers/nodeGraphs/dashboards/changefeeds.tsx line 56 at r1 (raw file):

    <LineGraph
      title="Commit Latency"

nit: should we rename this to "Max Commit Latency"?

Copy link
Collaborator Author

@rharding6373 rharding6373 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 @wenyihu6)


pkg/ui/workspaces/db-console/src/views/cluster/containers/nodeGraphs/dashboards/changefeeds.tsx line 56 at r1 (raw file):

Previously, wenyihu6 (Wenyi Hu) wrote…

nit: should we rename this to "Max Commit Latency" similar to this one below?

Let's leave this as is for now.

@rharding6373
Copy link
Collaborator Author

TFTR!

bors r+

@craig craig bot merged commit 3e488c5 into cockroachdb:master Mar 27, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
3 participants