Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12163

Ozone: Reduce MiniOzoneCluster handler thread count

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7240
    • ozone, test
    • None
    • Reviewed

    Description

      Checked the number of active threads used in MiniOzoneCluster with various settings:

      • Local handlers
      • Distributed handlers
      • Ratis-Netty
      • Ratis-gRPC

      The results are similar for all the settings. It uses 400+ threads for an 1-datanode MiniOzoneCluster.

      Moreover, there is a thread leak – a number of the threads do not shutdown after the test is finished. Therefore, when tests run consecutively, the later tests use more threads.

      Will post the details in comments.

      Attachments

        1. thread_dump.png
          229 kB
          Weiwei Yang
        2. TestOzoneThreadCount20170719.patch
          9 kB
          Tsz-wo Sze
        3. most_used_threads.png
          178 kB
          Weiwei Yang
        4. HDFS-12163-HDFS-7240.002.patch
          2 kB
          Weiwei Yang
        5. HDFS-12163-HDFS-7240.001.patch
          12 kB
          Weiwei Yang

        Activity

          People

            cheersyang Weiwei Yang
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: