Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def _add_remove_buffer_instances(
subnet_id=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_SUBNET_ID,
iam_instance_profile=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_ATTACHED_IAM_PROFILE,
),
min_number_of_instances=num_to_start,
min_number_of_instances=1, # NOTE: we want at least 1
number_of_instances=num_to_start,
max_total_number_of_instances=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MAX_INSTANCES,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ async def _assert_wait_for_ssm_command_to_finish() -> None:


async def test_monitor_buffer_machines(
patch_ec2_client_launch_instances_min_number_of_instances: None,
minimal_configuration: None,
ec2_client: EC2Client,
buffer_count: int,
Expand Down Expand Up @@ -374,6 +375,7 @@ async def test_monitor_buffer_machines_terminates_supernumerary_instances(


async def test_monitor_buffer_machines_terminates_instances_with_incorrect_pre_pulled_images(
patch_ec2_client_launch_instances_min_number_of_instances: None,
minimal_configuration: None,
ec2_client: EC2Client,
buffer_count: int,
Expand Down Expand Up @@ -457,6 +459,7 @@ def unneeded_instance_type(
],
)
async def test_monitor_buffer_machines_terminates_unneeded_pool(
patch_ec2_client_launch_instances_min_number_of_instances: None,
minimal_configuration: None,
ec2_client: EC2Client,
buffer_count: int,
Expand Down
Loading