From e9cc83096e57fbb3817ebaa35b18a4d956939f20 Mon Sep 17 00:00:00 2001 From: pranikum <109206473+pranikum@users.noreply.github.com> Date: Sat, 10 Jun 2023 00:02:38 +0530 Subject: [PATCH] Set evaluation period from 12 seconds to 5 seconds (#410) Signed-off-by: pranikum --- .../rca/store/OpenSearchAnalysisGraph.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java index c0c4fe4d9..e144f2ee1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java @@ -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> 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);