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

Improve datanode capability balancing

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hdfs
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              chuanjie.duan chuanjie.duan

              Dates

              • Created:
                Updated:

                Issue deployment