Skip to content

Commit

Permalink
Set evaluation period from 12 seconds to 5 seconds (#410) (#414)
Browse files Browse the repository at this point in the history
Signed-off-by: pranikum <[email protected]>
(cherry picked from commit e9cc830)

Co-authored-by: pranikum <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and pranikum authored Jun 9, 2023
1 parent 0091833 commit 3790800
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ public void construct() {
RcaConsts.RcaTagConstants.LOCUS_DATA_CLUSTER_MANAGER_NODE);
highCpuRca.addAllUpstreams(Collections.singletonList(cpuUtilizationGroupByOperation));

// Use EVALUATION_INTERVAL_SECONDS instead of RCA_PERIOD which resolved to 12 seconds.
// This is resulting in this RCA not getting executed in every 5 seconds.
Rca<ResourceFlowUnit<HotNodeSummary>> threadMetricsRca =
new ThreadMetricsRca(threadBlockedTime, threadWaitedTime, RCA_PERIOD);
new ThreadMetricsRca(threadBlockedTime, threadWaitedTime, EVALUATION_INTERVAL_SECONDS);
threadMetricsRca.addTag(
RcaConsts.RcaTagConstants.TAG_LOCUS,
RcaConsts.RcaTagConstants.LOCUS_DATA_CLUSTER_MANAGER_NODE);
Expand Down

0 comments on commit 3790800

Please sign in to comment.