Skip to content

Commit 7814e0c

Browse files
committed
minor
1 parent 4288acb commit 7814e0c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/autoscaling/src/simcore_service_autoscaling/utils/cluster_scaling.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ def sort_drained_nodes(
152152
n for n in all_drained_nodes if n not in terminating_nodes
153153
]
154154
# we need to keep in reserve only the drained nodes of the right type
155-
machine_buffer_type = get_hot_buffer_type(available_ec2_types)
155+
hot_buffer_type = get_hot_buffer_type(available_ec2_types)
156156
# NOTE: we keep only in buffer the drained nodes with the right EC2 type, AND the right amount
157-
buffer_drained_nodes = [
157+
hot_buffer_drained_nodes = [
158158
node
159159
for node in remaining_drained_nodes
160-
if node.ec2_instance.type == machine_buffer_type.name
160+
if node.ec2_instance.type == hot_buffer_type.name
161161
][: app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MACHINES_BUFFER]
162162
# all the others are "normal" drained nodes and may be terminated at some point
163163
other_drained_nodes = [
164-
node for node in remaining_drained_nodes if node not in buffer_drained_nodes
164+
node for node in remaining_drained_nodes if node not in hot_buffer_drained_nodes
165165
]
166-
return (other_drained_nodes, buffer_drained_nodes, terminating_nodes)
166+
return (other_drained_nodes, hot_buffer_drained_nodes, terminating_nodes)

0 commit comments

Comments
 (0)