-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YARN-8234. Improve RM system metrics publisher's performance by pushi… #3793
Conversation
…ng events to timeline server in batch.
This comment has been minimized.
This comment has been minimized.
@aajisaka , please review. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ashutoshcipher for providing the patch. Some comments and questions:
- Would you provide a new test case for this feature?
- Would you fix the checkstyle warnings?
- Can we use SLF4J parameterized logging format as possible?
In addition, I have a question. Why YarnConfiguration.RM_TIMELINE_SERVER_V1_PUBLISHER_INTERVAL
is set to 1 in some tests?
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
Writing test case for this is tricky, may we can do that later. Also current tests cases are making sure the functionality is overall intact.
I will do that.
I will do that.
This param was introduced as part of this change, so updated in test cases with value 1 as internal to make sure overall functionality is intact for tests to check. |
It is not true because the feature is not enabled by default. Would you create a new test case with the feature enabled?
By default, setting this parameter does not take effect. |
I am creating a new class
Yes, agreed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🎊 +1 overall
This message was automatically generated. |
...n/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TimelineServiceV1Publisher.java
Outdated
Show resolved
Hide resolved
...org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisherInBatch.java
Outdated
Show resolved
Hide resolved
Would you address the above comments and fix the checkstyle warnings? I'm +1 if all of those are addressed. Thanks. |
...t/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisher.java
Outdated
Show resolved
Hide resolved
...org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisherInBatch.java
Outdated
Show resolved
Hide resolved
...org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisherInBatch.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Maybe smart-apply-patch is somewhat broken. Would you rebase the commits related to the test and force-push it? |
…ure (apache#3774) Reviewed-by: Masatake Iwasaki <[email protected]>
…h class. Contributed by Tibor Kovacs
…ssage. (apache#3599) Change-Id: I070fc4784679b3be73aa3a11201bbae23c20ad4e
… queues. Contributed by Tamas Domok
Signed-off-by: Akira Ajisaka <[email protected]>
…own (apache#3768) Signed-off-by: Akira Ajisaka <[email protected]>
…tive asserts. Contributed by Benjamin Teke
Reviewed-by: Viraj Jasani <[email protected]> Signed-off-by: Takanobu Asanuma <[email protected]>
This reverts commit a4557f9.
…ation API (apache#3799). Contributed by Szilard Nemeth
…ed by Tamas Domok
…hat belongs to async scheduling to a new class (apache#3800). Contributed by Szilard Nemeth
…d by Szilard Nemeth
…Report (apache#3714). Contributed by liubingxing. Signed-off-by: He Xiaoqiao <[email protected]>
…ect (apache#3775) Signed-off-by: Akira Ajisaka <[email protected]>
…ge for future (apache#3789) Signed-off-by: Akira Ajisaka <[email protected]>
…e when ATSv2 is enabled (apache#3802)
346d8df
to
6a0de4f
Compare
💔 -1 overall
This message was automatically generated. |
Sure, I will do that |
🎊 +1 overall
This message was automatically generated. |
Merged. Thank you @ashutoshcipher for your contribution! |
…ng events to timeline server in batch (#3793) Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit 00e2405)
…ng events to timeline server in batch (#3793) Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit 00e2405) Conflicts: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisher.java
…ng events to timeline server in batch (#3793) Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit 00e2405) Conflicts: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisher.java
…ng events to timeline server in batch (#3793) Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit 00e2405)
…ng events to timeline server in batch (apache#3793) Signed-off-by: Akira Ajisaka <[email protected]>
Description of PR
Jira: https://issues.apache.org/jira/browse/YARN-8234
Improve RM system metrics publisher's performance by pushing events to timeline server in batch.
The patch is tested by applying it in-house clusters.