CRITICAL FIX: corrigido cálculo de overcommit de memória (bytes/GiB)

This commit is contained in:
2025-09-29 18:44:34 -03:00
parent dea241f8ca
commit fefe65f586

View File

@@ -646,7 +646,9 @@ class ValidationService:
# Calculate overcommit percentages
cpu_overcommit = (cluster_cpu_requests / cluster_cpu_capacity) * 100
memory_overcommit = (cluster_memory_requests / cluster_memory_capacity) * 100
# Convert memory capacity from GiB to bytes for consistent calculation
cluster_memory_capacity_bytes = cluster_memory_capacity * (1024 * 1024 * 1024)
memory_overcommit = (cluster_memory_requests / cluster_memory_capacity_bytes) * 100
# Determine overall health
if cpu_overcommit > 150 or memory_overcommit > 150: