This tutorial covers the general creation of an Elastigroup from scratch.
The general creation template is available under “Use Cases” in the Creation Wizard, under “General”.
The creation wizard will assist you to create an Elastigroup with all required resources.
Step 1: General Settings
* Elastigroup Details
Enter a name for the group (required).
Description can be set if desired.
Select the percentage of Preemptible instances in the Elastigroup.
The remaining percentage will be On-Demand instances.
Alternatively, define the exact number of On-Demand instances required in the Elastigroup.
Target is the number of instances the Elastigroup should maintain.
The Minimum and Maximum are the boundaries within which the Elastigroup can scale.
Step 2: Compute Settings
* Regions & Zones
Select your desired zones according to region. Clicking on region will open its zones.
You can add multiple zones / regions to the group.
* Network Settings
Select your desired Network, Subnet to run your Elastigroup in.
(Optional) Select your desired Service Account.
(Optional) Check the “” checkbox if you wish to assign an Ephemeral Public IP.
(Optional) Add network tags, you can add multiple tags.
The available vCPU/Memory configuration are linked to the CPU platforms in each zone.
Elastigroup uses the default CPU platform to maximize availability.
Select your desired instances types, one-by-one.
for each one you’ll see the details of the type in terms of vCPUs and Memory (GB), as well as the estimated cost per month.
If you wish to size the instance type yourself – choose the “Custom Instance” and set the vCPU and Memory bars accordingly.
For more on custom instance size specifications see GCP’s documentation here.
Fallback to on-demand:
fallback mechanism is making sure you won’t suffer from outage when no preemptible market available.
In operation of scale-up – if we can’t get available preemptible market we would fallback to on-demand instance, according to your selected instance type.
set “Allow fall back to on-demand” checkbox to activate the fallback to OD.
* Launch Specification
Specify your settings for instance launch.
Choose OS image from “Common Images” list or browse for your custom image.
Set disk type and size.
You can also add a startup script which will be executed every time your instance boots up.
Startup scripts can perform many actions, such as installing software, performing updates, turning on services, and any other tasks defined in the script.
You can use startup scripts to easily and programmatically customize your virtual machine instances, including on new instances at creation time.
* Backend Services
Set your required backend service (LB): Global / Regional.
For Global just choose the backend service from the list.
You can add named ports, e.g.:
Ports: “[443, 8443]”
For Regional choose the scheme type and than the backend service from the list.
Setup an integration from the following available:
* Docker Swarm
Click on Docker Swarm button, and set integration properties.
Set docker swarm properties to connect:Swarm Manager IP + Swarm Port.
click on “Test Connectivity” to validate integration is working properly.
To learn more on our integration to swarm please visit here.
Add labels to your Elastigroup by setting key and value.
Add GCP custom metadata to the instances.
Step 3: Scaling Settings (Optional)
Optionally create a up scale or down scale Policy. For more on Scaling with Elastigroup on GCP see the documentation here.
For policy creation (up scale or down scale) perform following steps:
- Click on ‘Add Policy’ (On up scaling or down scaling)
- Set policy name
- Set source by picking from list: Spotinst Spectrum / GCP Stackdriver
- Set or choose required namespace according to source
- Set scale based on values:Choose Trigger, Behavior and Dimensions.
Set Duration to determine amount of tests (and duration between them) to activate the policy.
Action will be Add on up scaling and Remove on down scaling, You need to set the amount of instances.Cooldown: The time (in seconds) that all scaling activities will be suspended after the scaling policy is triggered.
Step 4: Review And Create
All that’s left to do is review your settings and launch your Elastigroup!