Skip to content

Commit 0ad03a1

Browse files
committed
Switch preliminary scale-all nodes attempt to be all-or-nothing
Optimize job level scaling with preliminary scale-all nodes attempt. Switch this preliminary scaling from best-effort to all-or-nothing, so to remove unused instance launches Signed-off-by: Luca Carrogu <[email protected]>
1 parent 3f729d1 commit 0ad03a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slurm_plugin/instance_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def _scaling_for_jobs_multi_node(
776776
self.unused_launched_instances |= self._launch_instances(
777777
nodes_to_launch=self._parse_requested_nodes(node_list),
778778
launch_batch_size=launch_batch_size,
779-
all_or_nothing_batch=False,
779+
all_or_nothing_batch=True,
780780
)
781781

782782
self._scaling_for_jobs(

0 commit comments

Comments
 (0)