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

Balancer utilization classification is incomplete

    XMLWordPrintableJSON

Details

    • 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 Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: