@@ -316,9 +316,6 @@ public List<ClusterMetricsResponse> listClusterMetrics(List<ClusterResponse> clu
316316 final Float cpuDisableThreshold = DeploymentClusterPlanner .ClusterCPUCapacityDisableThreshold .valueIn (clusterId );
317317 final Float memoryDisableThreshold = DeploymentClusterPlanner .ClusterMemoryCapacityDisableThreshold .valueIn (clusterId );
318318
319- final Double cpuOvercommitRatio = findRatioValue (ApiDBUtils .findClusterDetails (clusterId , "cpuOvercommitRatio" ));
320- final Double memoryOvercommitRatio = findRatioValue (ApiDBUtils .findClusterDetails (clusterId , "memoryOvercommitRatio" ));
321-
322319 // CPU and memory capacities
323320 final CapacityDaoImpl .SummedCapacity cpuCapacity = getCapacity ((int ) Capacity .CAPACITY_TYPE_CPU , null , clusterId );
324321 final CapacityDaoImpl .SummedCapacity memoryCapacity = getCapacity ((int ) Capacity .CAPACITY_TYPE_MEMORY , null , clusterId );
@@ -351,13 +348,13 @@ public List<ClusterMetricsResponse> listClusterMetrics(List<ClusterResponse> clu
351348 // CPU thresholds
352349 metricsResponse .setCpuUsageThreshold (metrics .getCpuUsedPercentage (), metrics .getTotalHosts (), cpuThreshold );
353350 metricsResponse .setCpuUsageDisableThreshold (metrics .getCpuUsedPercentage (), metrics .getTotalHosts (), cpuDisableThreshold );
354- metricsResponse .setCpuAllocatedThreshold (metrics .getCpuAllocated (), metrics .getTotalCpu (), cpuOvercommitRatio , cpuThreshold );
355- metricsResponse .setCpuAllocatedDisableThreshold (metrics .getCpuAllocated (), metrics .getTotalCpu (), cpuOvercommitRatio , cpuDisableThreshold );
351+ metricsResponse .setCpuAllocatedThreshold (metrics .getCpuAllocated (), metrics .getTotalCpu (), cpuThreshold );
352+ metricsResponse .setCpuAllocatedDisableThreshold (metrics .getCpuAllocated (), metrics .getTotalCpu (), cpuDisableThreshold );
356353 // Memory thresholds
357354 metricsResponse .setMemoryUsageThreshold (metrics .getMemoryUsed (), metrics .getTotalMemory (), memoryThreshold );
358355 metricsResponse .setMemoryUsageDisableThreshold (metrics .getMemoryUsed (), metrics .getTotalMemory (), memoryDisableThreshold );
359- metricsResponse .setMemoryAllocatedThreshold (metrics .getMemoryAllocated (), metrics .getTotalMemory (), memoryOvercommitRatio , memoryThreshold );
360- metricsResponse .setMemoryAllocatedDisableThreshold (metrics .getMemoryAllocated (), metrics .getTotalMemory (), memoryOvercommitRatio , memoryDisableThreshold );
356+ metricsResponse .setMemoryAllocatedThreshold (metrics .getMemoryAllocated (), metrics .getTotalMemory (), memoryThreshold );
357+ metricsResponse .setMemoryAllocatedDisableThreshold (metrics .getMemoryAllocated (), metrics .getTotalMemory (), memoryDisableThreshold );
361358
362359 metricsResponses .add (metricsResponse );
363360 }
0 commit comments