From 794d658fc997dbcfde05fbe9b53911302d3f7437 Mon Sep 17 00:00:00 2001 From: pranikum Date: Thu, 8 Jun 2023 17:03:55 +0530 Subject: [PATCH] Set evaluation period from 12 seconds to 5 seconds 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 44454e03e..927df9e77 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java @@ -181,8 +181,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);