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

Improve datanode capability balancing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • hdfs
    • None

    Description

      How about adjust the order of choosing replication to deletion? 

      Is there any other meaning, choosing "oldestHeartbeatStorage" first?

       

        public DatanodeStorageInfo chooseReplicaToDelete(

            Collection<DatanodeStorageInfo> moreThanOne,

            Collection<DatanodeStorageInfo> exactlyOne,

            final List<StorageType> excessTypes,

            Map<String, List<DatanodeStorageInfo>> rackMap) {

          ......

          final DatanodeStorageInfo storage;

          if (minSpaceStorage != null)

      {       storage = minSpaceStorage;     }

      else if (oldestHeartbeatStorage != null)

      {       storage = oldestHeartbeatStorage;     }

      else

      {       return null;     }

          excessTypes.remove(storage.getStorageType());

          return storage;

        }

      Attachments

        1. HDFS-15658-branch-2.7.patch
          1.0 kB
          chuanjie.duan

        Activity

          People

            Unassigned Unassigned
            chuanjie.duan chuanjie.duan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: