Introduction
Elastigroups support a “High Availability” deployment structure to allow you to evenly distribute instances across multiple AZs in a single region. This Elastigroup orientation will guarantee equal capacity across all selected AZs.
Using this option will guarantee capacity even if there are no spot instances available. While no Spot instances are available the Elastigroup will launch on-demand instances instead.
How this works
1. Upon Elastigroup creation or Scale up – Before spinning new instances we will check the current spread of instances, according to the current chosen AZs in the group we will spin up the instances in an equally divided manner across the selected AZs.
2. On Scale down – According to the current spread of instances across the AZs we will detach instances in a way that they remain equally divided.
Enabling Equal AZ Orientation
This option is available via the API or the “Edit Configuration” option in the UI.
From the UI:
While creating a new Elastigroup or Editing an existing Elastigorup configuration
- Set up your group
- Make sure that you select a target capacity that will match (or is a multiple of) the amount of AZs
- In the Review tab, enable “Edit Mode” and edit the JSON
- Set the value of “availabilityVsCost” to:”equalAzDistribution”
Using the API:
While creating an Elastigorup – Use the “equalAzDistribution” in the availabilityVsCost field in the Elastigroup JSON
While updating an Elastigroup – Update the strategy of the Elastigroup. The following is an example JSON:
{ "group": { "strategy": { "risk": 100, "availabilityVsCost": "equalAzDistribution", "drainingTimeout": 60, "fallbackToOd": true, "persistence": {} } } }