-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-10358. Allow Container Balancer tuning options to be set in CLI #6241
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
errose28
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.
Thanks for working on this @sarvekshayr. Let's also add a test that when CLI options and configurations are present, the CLI options override the defined configurations (assuming that is expected behavior).
.../main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerConfiguration.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
siddhantsangwan
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.
Thanks for working on this. I've left some comments.
...pache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java
Outdated
Show resolved
Hide resolved
...pache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java
Outdated
Show resolved
Hide resolved
...pache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerConfiguration.java
Outdated
Show resolved
Hide resolved
|
@SaketaChalamchala would you like to review? |
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
sumitagrawl
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.
@sarvekshayr Thanks for working over this, have few minor comments.
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerBalancerOperations.java
Show resolved
Hide resolved
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.
Overall the changes look good! Just a few improvements, you can find the comments below
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
tanvipenumudy
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.
Thank you @sarvekshayr for updating the patch, please find a few minor nits.
.../integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerBalancerOperations.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerBalancerOperations.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerBalancerOperations.java
Outdated
Show resolved
Hide resolved
…ozone/TestContainerBalancerOperations.java Co-authored-by: tanvipenumudy <46785609+tanvipenumudy@users.noreply.github.com>
…ozone/TestContainerBalancerOperations.java Co-authored-by: tanvipenumudy <46785609+tanvipenumudy@users.noreply.github.com>
…ozone/TestContainerBalancerOperations.java Co-authored-by: tanvipenumudy <46785609+tanvipenumudy@users.noreply.github.com>
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...dds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStartSubcommand.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerBalancerOperations.java
Outdated
Show resolved
Hide resolved
sumitagrawl
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.
LGTM +1
Tejaskriya
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.
Please find a few comments regarding the checks changed.
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
Outdated
Show resolved
Hide resolved
Tejaskriya
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.
LGTM, +1. Thanks for making the changes
siddhantsangwan
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.
@sarvekshayr Thanks for updating. Other than my comment above about error handling, this change looks good now. We can kick off CI once you've updated it.
siddhantsangwan
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.
Waiting for green CI.
|
Thanks @sarvekshayr and all the reviewers. Merging to master. |
…pache#6241) (cherry picked from commit 077fff4)
What changes were proposed in this pull request?
Introducing more configuration options in the Container Balancer CLI tool. Options for including and excluding nodes from balancing, "balancing.iteration.interval", "move.timeout", "move.replication.timeout" for managing timeouts and "move.networkTopology.enable" for enabling network topology aware moves.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10358
How was this patch tested?
Listing all the subcommands under containerbalancer start


Default values of the tuning options

Starting containerbalancer with the newly added tuning options in CLI.

