JacksonYao287 commented on a change in pull request #2278:
URL: https://github.com/apache/ozone/pull/2278#discussion_r645977910
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java
##########
@@ -111,27 +112,42 @@ public boolean start(ContainerBalancerConfiguration
balancerConfiguration) {
ozoneConfiguration = new OzoneConfiguration();
this.config = balancerConfiguration;
+ this.idleIteration = config.getIdleIteration();
this.threshold = config.getThreshold();
this.maxDatanodesToBalance = config.getMaxDatanodesToBalance();
this.maxSizeToMove = config.getMaxSizeToMove();
this.unBalancedNodes = new ArrayList<>();
-
LOG.info("Starting Container Balancer...{}", this);
- balance();
+ //we should start a new balancer thread async
+ //and response to cli as soon as possible
+
+
+ //this is a temporary implementation
Review comment:
thanks ,will updated these!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]