Skip to content

Commit

Permalink
[integ-test] Change ODCR instance type
Browse files Browse the repository at this point in the history
test_on_demand_capacity_reservation was using c5.xlarge as one of the open ODCRs. However, open ODCRs can be shared with other tests in the same availability zone, causing test_on_demand_capacity_reservation failing because of insufficient reservation capacity. Therefore,to avoid other tests using ODCR mistakenly, this commit changes the instance type to m5.2xlarge, which is not widely used in our integration tests

Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster authored and hanwen-pcluste committed Feb 14, 2023
1 parent 3da6e56 commit 8264852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integration-tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ def odcr_stack(request, region, placement_group_stack, cfn_stacks_factory, vpc_s
AvailabilityZone=availability_zone,
InstanceCount=4,
InstancePlatform="Linux/UNIX",
InstanceType="c5.xlarge",
InstanceType="m5.2xlarge",
)
target_odcr = ec2.CapacityReservation(
"integTestsTargetOdcr",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ Scheduling:
- Name: open-odcr-q
ComputeResources:
- Name: open-odcr-id-cr
InstanceType: c5.xlarge
InstanceType: m5.2xlarge
MinCount: 1
MaxCount: 10
CapacityReservationTarget:
CapacityReservationId: {{ open_capacity_reservation_id }}
- Name: open-odcr-arn-cr
InstanceType: c5.xlarge
InstanceType: m5.2xlarge
MinCount: 1
MaxCount: 10
CapacityReservationTarget:
CapacityReservationResourceGroupArn: {{ open_capacity_reservation_arn }}
- Name: open-odcr-id-pg-cr
InstanceType: c5.xlarge
InstanceType: m5.2xlarge
MinCount: 1
MaxCount: 10
Networking:
Expand All @@ -33,7 +33,7 @@ Scheduling:
CapacityReservationTarget:
CapacityReservationId: {{ open_capacity_reservation_id }}
- Name: open-odcr-arn-pg-cr
InstanceType: c5.xlarge
InstanceType: m5.2xlarge
MinCount: 1
MaxCount: 10
Networking:
Expand Down

0 comments on commit 8264852

Please sign in to comment.