From e4d2cdd9d11d32524032ec66a6f995dd69ca483b Mon Sep 17 00:00:00 2001 From: bharathappali Date: Fri, 3 Nov 2023 17:11:55 +0530 Subject: [PATCH] Make CPU Limits to point correctly, earlier it's pointing to cpu request Signed-off-by: bharathappali --- .../recommendations/engine/CostRecommendationEngine.java | 2 +- .../recommendations/engine/PerformanceRecommendationEngine.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/autotune/analyzer/recommendations/engine/CostRecommendationEngine.java b/src/main/java/com/autotune/analyzer/recommendations/engine/CostRecommendationEngine.java index 8b92eb438..b113a01d2 100644 --- a/src/main/java/com/autotune/analyzer/recommendations/engine/CostRecommendationEngine.java +++ b/src/main/java/com/autotune/analyzer/recommendations/engine/CostRecommendationEngine.java @@ -993,7 +993,7 @@ public MappedRecommendationForEngine generateRecommendation(Timestamp monitoring HashMap internalMapToPopulate = new HashMap(); // Add current values internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_REQUEST, currentCPURequest); - internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_LIMIT, currentCPURequest); + internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_LIMIT, currentCPULimit); internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_MEMORY_REQUEST, currentMemRequest); internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_MEMORY_LIMIT, currentMemLimit); // Add recommended values diff --git a/src/main/java/com/autotune/analyzer/recommendations/engine/PerformanceRecommendationEngine.java b/src/main/java/com/autotune/analyzer/recommendations/engine/PerformanceRecommendationEngine.java index f16027593..44f24e6a1 100644 --- a/src/main/java/com/autotune/analyzer/recommendations/engine/PerformanceRecommendationEngine.java +++ b/src/main/java/com/autotune/analyzer/recommendations/engine/PerformanceRecommendationEngine.java @@ -1011,7 +1011,7 @@ public MappedRecommendationForEngine generateRecommendation(Timestamp monitoring HashMap internalMapToPopulate = new HashMap(); // Add current values internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_REQUEST, currentCPURequest); - internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_LIMIT, currentCPURequest); + internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_CPU_LIMIT, currentCPULimit); internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_MEMORY_REQUEST, currentMemRequest); internalMapToPopulate.put(RecommendationConstants.RecommendationEngine.InternalConstants.CURRENT_MEMORY_LIMIT, currentMemLimit); // Add recommended values