Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10784

Optimize RMNodeStatusEvent process performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.5
    • 3.3.0
    • None
    • None

    Description

      According to YARN-9927 analysis. The RMNodeStatusEvent dominates 90% time consumption of RM event scheduler.

      Use async-profiler profile the Processing of RMNodeStatusEvent,ProtoUtils.convertFromProtoFormat Use JDK String.replace().

      It is definitely worth considering not using these JDK String methods and opting for the faster Apache Commons StringUtils.replace() instead.

      Test case on jdk8:

      for (int i=0 ; i<100000 ;i++)

      { ProtoUtils.convertFromProtoFormat(builder.getState()); }

      Apache Commons StringUtils.replace() : used 30ms
      JDK String.replace() : used 60ms

      Attachments

        1. screenshot-2.png
          191 kB
          chaosju

        Issue Links

          Activity

            People

              chaosju chaosju
              chaosju chaosju
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: