hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yufei Gu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7207) Cache the local host name when getting application list in RM
Date Tue, 26 Sep 2017 08:41:01 GMT

    [ https://issues.apache.org/jira/browse/YARN-7207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180473#comment-16180473

Yufei Gu commented on YARN-7207:

Thanks [~rkanter] for the review. Uploaded patch v2 for your comments.
1. Fixed
2. To do that, we need to pass a {{Configuration}} object into constructor of {{RMContextImpl}}.
That does't look good to me since
{{ResourceManager#serviceInit()}} intentionally set YARN configuration to rmContext after
validation of configuration. In addition, to check the slowness of {{getLocalHost()}} needs
multithread loops and each loop calls {{getLocalHost()}} thousands of times. We probably want
to do that separately any way.

> Cache the local host name when getting application list in RM
> -------------------------------------------------------------
>                 Key: YARN-7207
>                 URL: https://issues.apache.org/jira/browse/YARN-7207
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: RM
>    Affects Versions: 3.1.0
>            Reporter: Yufei Gu
>            Assignee: Yufei Gu
>         Attachments: YARN-7207.001.patch, YARN-7207.002.patch
> {{getLocalHostName()}} is invoked for generating the report for each application, which
means it is called 1000 times for each {{getApplications()}} if there are 1000 apps in RM.
Some user got a performance issue when {{getLocalHostName()}} is slow under some network envs.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message