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

Add a test to monitor the distribution of vnode to physical node #18147

Merged
merged 6 commits into from
Sep 15, 2023

Conversation

yuzhu
Copy link
Contributor

@yuzhu yuzhu commented Sep 13, 2023

What changes are proposed in this pull request?

Add a test so we can monitor the vnode distribution is not too uneven.

This test calculates the standard deviation over mean on the collection of virtual nodes assigned to physical nodes. It arbitrarily bounds it at 0.25, but ideally this number should get smaller over time as we improve hashing algorithm
and use better ways to assign virtual nodes to physical nodes.

Why are the changes needed?

We may change hashing algorithm and virtual node assignment in the future, this will provide guidance and catch errors.

Does this PR introduce any user facing changes?

No.

@yuzhu yuzhu requested a review from beinan September 13, 2023 18:53
Copy link
Contributor

@beinan beinan left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@yuzhu
Copy link
Contributor Author

yuzhu commented Sep 15, 2023

alluxio-bot, merge this please

@alluxio-bot
Copy link
Contributor

merge failed:
Merge refused because pull request does not have label start with type-

@yuzhu yuzhu added the type-code-quality code quality improvement label Sep 15, 2023
@yuzhu
Copy link
Contributor Author

yuzhu commented Sep 15, 2023

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 8bba797 into Alluxio:main Sep 15, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-code-quality code quality improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants