-
Notifications
You must be signed in to change notification settings - Fork 20
Expose queue rejection time period setting in rca.conf #356
Conversation
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.
Ruizhen, can we add a UT here?
The changes look good to me but we had a failure recently with wrong JSON structure.
pa_config/rca.conf
Outdated
@@ -49,6 +49,10 @@ | |||
"promotion-rate-mb-per-second" : 500, | |||
"young-gen-gc-time-ms-per-second" : 400 | |||
}, | |||
//queue rejection rca |
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.
The comment is the key name itself. It may be removed.
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.
removed
} | ||
|
||
public static class RCA_CONF_KEY_CONSTANTS { | ||
public static final String REJECTION_TIME_PERIOD_IN_SECONDS = "rejection-time-period-in-seconds"; |
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.
Is there a reason why it should be in a static inner class of its own ?
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.
the reason is because we might want to add more settings to this RCA in the future so it would be better to keep all consts under the same inner class.
Codecov Report
@@ Coverage Diff @@
## master #356 +/- ##
============================================
- Coverage 67.20% 67.17% -0.04%
- Complexity 2082 2087 +5
============================================
Files 300 301 +1
Lines 13311 13326 +15
Branches 1103 1104 +1
============================================
+ Hits 8946 8952 +6
- Misses 3959 3970 +11
+ Partials 406 404 -2
Continue to review full report at Codecov.
|
Changes for 1 package (OpenDistroPerformanceAnalyzerEngine), pushed in snapshot... https://code.amazon.com/snapshots/partsrut/2020-08-08T02-49-04 Changes for OpenDistroPerformanceAnalyzerEngine package: 0194f9f Fix failing reaction wheel tests bfdb93d Merge remote-tracking branch 'upstream/master' e03a120 Use StringUtils instead of NumberUtils to check timestamp string (#360) 79841f2 Expose queue rejection time period setting in rca.conf (#356) f9dfda5 Implement isMuted method in DummyAction (#355) 7ede0b9 Reader changes for dynamic enable/disable of RCA graph components (#325) ee58207 Fix bug in publisher to support cool off period on a per node basis (#351) cr https://code.amazon.com/reviews/CR-31344155
Issue #:
#357
Description of changes:
Expose queue rejection time period setting in rca.conf
Tests:
tested on docker
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.