Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1748

Balancer utilization classification is incomplete

    Details

    • Hadoop Flags:
      Reviewed

      Description

      //Balancer.java
        /* Return true if the given datanode is overUtilized */
        private boolean isOverUtilized(BalancerDatanode datanode) {
          return datanode.utilization > (avgUtilization+threshold);
        }
        
        /* Return true if the given datanode is above average utilized
         * but not overUtilized */
        private boolean isAboveAvgUtilized(BalancerDatanode datanode) {
          return (datanode.utilization <= (avgUtilization+threshold))
              && (datanode.utilization > avgUtilization);
        }
        
        /* Return true if the given datanode is underUtilized */
        private boolean isUnderUtilized(BalancerDatanode datanode) {
          return datanode.utilization < (avgUtilization-threshold);
        }
      
        /* Return true if the given datanode is below average utilized 
         * but not underUtilized */
        private boolean isBelowAvgUtilized(BalancerDatanode datanode) {
              return (datanode.utilization >= (avgUtilization-threshold))
                       && (datanode.utilization < avgUtilization);
        }
      

      Where is datanode.utilization == avgUtilization?

        Attachments

        1. h1748_20110310.patch
          2 kB
          Tsz Wo Nicholas Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz Wo Nicholas Sze
              Reporter:
              szetszwo Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: