Skip to content

Orca WaitForCapacityMatchTask and WaitForUpInstancesTask fail Mixed Instance Policy with weight #7070

Open
@aroger-r7

Description

@aroger-r7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions