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

refactor(dashboard): refactor back-pressure calculation #19954

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

fuyufjh
Copy link
Member

@fuyufjh fuyufjh commented Dec 27, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Based on the previous PR, this PR rewrite the back-pressure calculation code in much less code.

I did this because I am going to add more statistics to the Web dashboard, such as streaming throughput.

Checklist

  • I have written necessary rustdoc comments.
  • I have added necessary unit tests and integration tests.
  • I have added test labels as necessary.
  • I have added fuzzing tests or opened an issue to track them.
  • My PR contains breaking changes.
  • My PR changes performance-critical code, so I will run (micro) benchmarks and present the results.
  • My PR contains critical fixes that are necessary to be merged into the latest release.

Documentation

  • My PR needs documentation updates.
Release note

Copy link
Member Author

fuyufjh commented Dec 27, 2024

@fuyufjh fuyufjh changed the title web: refactor in fragment graph refactor(dashboard): refactor back-pressure calculation Dec 27, 2024
@fuyufjh fuyufjh marked this pull request as ready for review December 27, 2024 15:46
Copy link
Member

@yufansong yufansong left a comment

Choose a reason for hiding this comment

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

Most LGTM

return () => {
clearInterval(interval)
}
}, [toast, resetEmbeddedBackPressures])

// Get relationId-relationId -> backpressure rate map
// Convert fragment-level backpressure rate map to relation-level backpressure rate
Copy link
Member

Choose a reason for hiding this comment

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

QQ: what is relation-level backpressure rate?

Copy link
Contributor

Choose a reason for hiding this comment

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

E.g. backpressure between MVs

Copy link
Contributor

Choose a reason for hiding this comment

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

@fuyufjh fuyufjh changed the base branch from eric/dashboard_remove_promethues to graphite-base/19954 December 31, 2024 06:50
@fuyufjh fuyufjh merged commit 6e0483f into graphite-base/19954 Jan 2, 2025
33 of 36 checks passed
@fuyufjh fuyufjh deleted the eric/refactor_bp_data branch January 2, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants