Description
A ServerGroup with a Mixed Instance Policy with weighted capacity for example
c6g.xlarge weightedCapacity : 4
c6g.2xlarge weightedCapacity : 8
with target capacity of 8,
the capacity unit in AWS will be the total weight of the instance but the orca code is just looking at the number of instances.
so it will never succeed the WaitForUpInstancesTask or on resize the WaitForCapacityMatchTask.
for WaitForUpInstancesTask the work around would be to change the targetHealthyDeployPercentage to 100/max(weightedCapacity) but that will allow for a not fully healthy cluster to proceed
for WaitForCapacityMatchTask will need to be canceled
Related to #5989
There does not seem to be an easy way to implement that, both task would need to lookup the weight according to the instance type to calculate the capacity when using Mixed Instance Policy.