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

Improve performance for createAndGetApplicationReport

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are two performance issue when calling createAndGetApplicationReport:
      One is inside ProtoUtils.convertFromProtoFormat, replace is too slow for clusters which have more than 3000 nodes. Use substring is much better: https://issues.apache.org/jira/browse/YARN-6285?focusedCommentId=15923241&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15923241

      Another one is inside getLogAggregationReportsForApp, if some application's LogAggregationStatus is TIME_OUT, every time it was called it will create an HashMap which will produce lots of garbage.

        Attachments

        1. YARN-6339.001.patch
          6 kB
          yunjiong zhao
        2. YARN-6339.002.patch
          8 kB
          yunjiong zhao
        3. YARN-6339.003.patch
          7 kB
          yunjiong zhao

        Issue Links

          Activity

            People

            • Assignee:
              zhaoyunjiong yunjiong zhao
              Reporter:
              zhaoyunjiong yunjiong zhao

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment