Skip to content

Macos autoscaling groups to use more than one availability zone

Currently both the green and blue deployments for the macos shards use the us-east-1a zone only.

We have had occurrences where this zone has run out of mac2.metal dedicated hosts. Presumably this could happen with any of the newer models too.

This becomes a problem when doing a blue/green deployment, where the newer deployment cannot scale up appropriately until resources are freed from the older one. This causes long job pending durations (1hr+) when this deployment occurs (if we are at capacity for the zone).

This could also theoretically be a problem if a group is scaled down due to a smaller number of jobs running. Once the number of hosts is reduced, we may not be able to scale up to meet demand.

We might consider having the two scaling groups (per deployment) in separate zones, e.g. us-east-1a and us-east-1b. This should spread the capacity requests out better and may allow a new deployment to scale in at least one zone if the other has insufficient hosts.

Steps / History:

Edited by Davis Bickford
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information