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

Choose SSD over DISK in block placement

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.1, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      BlockPlacementPolicyDefault chooses the StorageType by iterating the given StorageType EnumMap in its natural order (the order in which the enum constants are declared). So DISK will be chosen over SSD in One-SSD policy since DISK is declared before SSD as shown below. We should choose SSD first.

      public enum StorageType {
        DISK(false),
        SSD(false),
        ARCHIVE(false),
        RAM_DISK(true);
      
        ...
      }
      

        Attachments

        1. h8361_20150508.patch
          2 kB
          Tsz-wo Sze
        2. h8361_20150612.patch
          5 kB
          Tsz-wo Sze

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz-wo Sze
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: