-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-14213. Fix DiskBalancer VolumeChoosingPolicy to balance when dest volume exists but no src volume exceeds threshold #9587
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
Conversation
…skBalancer volumechoosing policy
|
@ChenSammi and @szetszwo Please review the patch. |
szetszwo
left a comment
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.
@Gargi-jais11 , thanks for working on this!
Please see the comments inlined.
.../java/org/apache/hadoop/ozone/container/diskbalancer/policy/DefaultVolumeChoosingPolicy.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/hadoop/ozone/container/diskbalancer/policy/DefaultVolumeChoosingPolicy.java
Show resolved
Hide resolved
|
I have completed a comprehensive performance analysis comparing the Old Policy (O(N)Log(N)) vs. the New Policy (O(N^2)) across different cluster sizes (20, 100, and 200 volumes). Before optimisation: After optimisation: |
...est/java/org/apache/hadoop/ozone/container/diskbalancer/TestDefaultVolumeChoosingPolicy.java
Show resolved
Hide resolved
...est/java/org/apache/hadoop/ozone/container/diskbalancer/TestDefaultVolumeChoosingPolicy.java
Outdated
Show resolved
Hide resolved
...est/java/org/apache/hadoop/ozone/container/diskbalancer/TestDefaultVolumeChoosingPolicy.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/hadoop/ozone/container/diskbalancer/policy/DefaultVolumeChoosingPolicy.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/hadoop/ozone/container/diskbalancer/policy/DefaultVolumeChoosingPolicy.java
Show resolved
Hide resolved
szetszwo
left a comment
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.
@Gargi-jais11 , thanks for the update!
+1 the change looks good.
.../java/org/apache/hadoop/ozone/container/diskbalancer/policy/DefaultVolumeChoosingPolicy.java
Outdated
Show resolved
Hide resolved
|
Thanks @Gargi-jais11 , and @szetszwo for review. |
What changes were proposed in this pull request?
This PR handles the below case to be fixed:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14213
How was this patch tested?
Added a new unit Test
TestDefaultVolumeChoosingPolicywhich covers below test scenarios: