Skip to content

Commit

Permalink
Update scaling_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Aug 22, 2024
1 parent 7edf4f5 commit a9b54d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lxc_autoscale/scaling_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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

Expand Down

0 comments on commit a9b54d3

Please sign in to comment.