Kublr is able to use Spotinst Elastigroup instead of regular AWS Auto Scaling Groups.
Spotinst Elastigroup is an application scaling service. Similar to Amazon Elastic Compute Cloud (Amazon EC2) Auto Scaling groups, Spotinst Elastigroup is designed to optimize performance and costs by leveraging Spot Instances combined with On-Demand and Reserved Instances.
Using a combination of automated Spot Instance management and the variety of instance sizes, the Spotinst Elastigroup autoscaler scales according to the task resource requirements, instead of cluster resource thresholds, and achieves over 90% resource utilization while keeping your cluster resources as defragmented as possible.
To use Spotinst Elastigroup:
AWS account
(Spotinst account
is required).Kublr
:Log into your AWS account
.
To choose the AWS Region where you want to deploy Elastigroup, in the navigation bar, use the region selector.
Note The Elastigroup for Amazon ECS Quick Start supports up to four Availability Zones, but not all Regions provide four Availability Zones. Refer to the AWS Global Infrastructure webpage to see a list of Regions and Availability Zones.
Create a key pair in your preferred region.
Log into your Spotinst account
or sign up to create a new one.
Choose AWS as your cloud provider.
Connect Spotinst to your AWS account by using the AWS CloudFormation template to create an IAM role.
To create a Spotinst token, on the top right corner, click your account avatar, then from the menu select My Account. Your Spotinst account page is displayed.
Use the API tab.
Click GENERATE TOKEN. Your token is created, the New Personal Access Token dialog is displayed.
Copy and save the Access Token. You will use it as a parameter in the AWS CloudFormation template.
To locate your Spotinst Account ID, use the Account tab.
Copy and save the Account ID as you will use it as a parameter in the AWS CloudFormation template.
Go back to your AWS account
.
Deploy Elastigroup into a new or existing VPC using previously created Spotinst credentials. The following will help:
Use the How to deploy tab.
Refer to step “Launch the Quick Start” with option of new or existing VPC.
Use the full deployment guide (click the button to access) for detais.
Next step.
To create Spotinst credentials:
In Kublr
, on the left menu, click Credentials.
Click ADD CREDENTIALS. The credentials dialog is displayed.
In the dialog, from Credentials Type select “Spotinst Credentials”.
Set:
Click SAVE CREDENTIALS.
To enable Spotinst Elastigroup for your cluster:
In Kublr
, access your AWS cluster ADD/EDIT dialog.
Use the INSTANCES tab.
Use the Master Configuration or a corresponding instance group section.
Expand the Advanced Options.
Select the Enable Spotinst Elastigroup checkbox.
From the Spotinst Account Token list, select previously created Spotinst credentials.
Save the changes.