-
Notifications
You must be signed in to change notification settings - Fork 228
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
Support zone based virtual topology assignment algorithm #2986
base: master
Are you sure you want to change the base?
Support zone based virtual topology assignment algorithm #2986
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had an offline discussion.
When a new host joining the cluster, the current behavior of virtual group assignment will recompute the whole virtual topology assignment, causing the whole partition assignment shuffle.
I feel like the ideal behavior should be ore sticky. When new hosts are added, the existing hosts' mapping should not change.
@@ -24,7 +24,12 @@ public class VirtualTopologyGroupConstants { | |||
public static final String GROUP_NAME = "virtualTopologyGroupName"; | |||
public static final String GROUP_NUMBER = "virtualTopologyGroupNumber"; | |||
public static final String AUTO_MAINTENANCE_MODE_DISABLED = "autoMaintenanceModeDisabled"; | |||
public static final String ASSIGNMENT_ALGORITHM = "virtualTopologyAssignmentAlgorithm"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe ASSIGNMENT_ALGORITHM_TYPE?
return _instance; | ||
} | ||
|
||
@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signature
Would be great if provide an example
Issues
Support zone based virtual topology assignment algorithm #2985
Description
This PR support zone based virtual topology assignment algorithm. In the rest service, introduced a configurable parameter enabling users to select the desired virtual topology assignment algorithm (e.g.,instance_based or zone_based). Additionally, implemented a zone-based assignment algorithm that directly maps physical zones to virtual zones.
Tests
Changes that Break Backward Compatibility (Optional)
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)