You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ni...@apache.org on 2022/03/08 15:46:25 UTC

[ozone] branch master updated: HDDS-6415 - add Over-Utilized and Under-Utilized DN details in debug log (#3171)

This is an automated email from the ASF dual-hosted git repository.

nilotpalnandi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c58d79  HDDS-6415 - add Over-Utilized and Under-Utilized DN details in debug log (#3171)
1c58d79 is described below

commit 1c58d79c11ff9133e52f7cf511fcbd202e8e8a41
Author: nilotpalnandi <36...@users.noreply.github.com>
AuthorDate: Tue Mar 8 21:16:07 2022 +0530

    HDDS-6415 - add Over-Utilized and Under-Utilized DN details in debug log (#3171)
    
    Co-authored-by: Nilotpal Nandi <nn...@cloudera.com>
---
 .../hdds/scm/container/balancer/ContainerBalancer.java     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java
index bd6d3cc..b2d7d18 100644
--- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java
+++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java
@@ -374,6 +374,20 @@ public class ContainerBalancer {
             "Under-Utilized Datanodes that need to be balanced.",
         overUtilizedNodes.size(), underUtilizedNodes.size());
 
+    if (LOG.isDebugEnabled()) {
+      overUtilizedNodes.forEach(entry -> {
+        LOG.debug("Datanode {} {} is Over-Utilized.",
+            entry.getDatanodeDetails().getHostName(),
+            entry.getDatanodeDetails().getUuid());
+      });
+
+      underUtilizedNodes.forEach(entry -> {
+        LOG.debug("Datanode {} {} is Under-Utilized.",
+            entry.getDatanodeDetails().getHostName(),
+            entry.getDatanodeDetails().getUuid());
+      });
+    }
+
     selectionCriteria = new ContainerBalancerSelectionCriteria(config,
         nodeManager, replicationManager, containerManager, findSourceStrategy);
     sourceToTargetMap = new HashMap<>(overUtilizedNodes.size() +

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org