Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Expose queue rejection time period setting in rca.conf #356

Merged
merged 4 commits into from
Aug 7, 2020

Conversation

rguo-aws
Copy link
Contributor

@rguo-aws rguo-aws commented Aug 7, 2020

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.

@rguo-aws rguo-aws added the enhancement Enhancements to existing codebase label Aug 7, 2020
@rguo-aws rguo-aws linked an issue Aug 7, 2020 that may be closed by this pull request
@rguo-aws rguo-aws requested review from khushbr and sruti1312 August 7, 2020 21:05
Copy link
Contributor

@khushbr khushbr left a 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.

@@ -49,6 +49,10 @@
"promotion-rate-mb-per-second" : 500,
"young-gen-gc-time-ms-per-second" : 400
},
//queue rejection rca
Copy link
Contributor

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.

Copy link
Contributor Author

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";
Copy link
Contributor

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 ?

Copy link
Contributor Author

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
Copy link

codecov bot commented Aug 7, 2020

Codecov Report

Merging #356 into master will decrease coverage by 0.03%.
The diff coverage is 60.00%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ Complexity Δ
...erformanceanalyzer/rca/framework/core/RcaConf.java 45.45% <0.00%> (+1.41%) 25.00 <0.00> (+2.00)
...er/rca/store/rca/threadpool/QueueRejectionRca.java 68.42% <50.00%> (-6.95%) 8.00 <0.00> (ø)
...eanalyzer/rca/configs/QueueRejectionRcaConfig.java 85.71% <85.71%> (ø) 3.00 <3.00> (?)
...nalyzer/rca/net/handler/PublishRequestHandler.java 75.00% <0.00%> (-5.00%) 5.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9dfda5...cbb2e4c. Read the comment docs.

@rguo-aws rguo-aws merged commit 79841f2 into master Aug 7, 2020
@rguo-aws rguo-aws deleted the rguo-fix-bug3 branch August 7, 2020 22:00
khushbr pushed a commit that referenced this pull request Sep 30, 2020
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancements to existing codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add queue rejection period in QueueRejectionRca into rca.conf
4 participants