diff --git a/lxc_autoscale/scaling_manager.py b/lxc_autoscale/scaling_manager.py index 26feba3..f3af611 100644 --- a/lxc_autoscale/scaling_manager.py +++ b/lxc_autoscale/scaling_manager.py @@ -178,7 +178,7 @@ def adjust_resources(containers, energy_mode): logging.info(f"Container {ctid}: CPU usage: {rounded_cpu_usage}%, Memory usage: {rounded_mem_usage}MB " f"({free_mem_percent}% free of {total_mem_allocated}MB total), " - f"Initial cores: {usage['initial_cores']}, Initial memory: {total_mem_allocated}MB") + f"Initial cores (181): {usage['initial_cores']}, Initial memory: {total_mem_allocated}MB") # Proceed with the rest of the logic for adjusting resources for ctid, usage in containers.items(): @@ -201,8 +201,6 @@ def adjust_resources(containers, energy_mode): current_cores = usage["initial_cores"] current_memory = usage["initial_memory"] - logging.info(f"Container {ctid} - Initial cores: {current_cores}, CPU usage: {rounded_cpu_usage}%") - cores_changed = False memory_changed = False