fbpx

Creating a Deployment with Elastigroup on AWS

Multai load balancer uses Runtime instances as hosts to run the Load Balancers.

It is a best practice to run the Runtime Instances as part of a Spotinst Elastigroup.

In order to integrate Elastigroup with Multai please follow the following steps:

1. Create a Deployment and Runtime
  1. Navigate to the MLB Console -> Runtime and create a deployment
  2. Provide a name for the Deployment
  3. After the Deployment is created, copy the Deployment ID to be used in the next section

 

2. Create an Elastigroup

Follow this guide: Creating an Elastigroup while following these steps:

  1. We recommend starting with a minimum capacity of 2 instances
  2. Important! Your subnets should have access to an Internet Gateway
  3. We recommend using M or C5 type instances such as m3.xlarge or m4.xlarge
  4. Select one of the following AMIs according to the region

us-east-1 (N. Virginia)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-c7efd8b8

eu-central-1 (Frankfurt)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-a13c384a

us-west-1 (N. California)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-6ac22109

us-west-2 (Oregon)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-eec09096

ap-southeast-1 (Singapore)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-8bb1c861

sa-east-1 (Sao Paulo)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-15fdda79

ap-northeast-1 (Tokyo)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-39a8cbd4

ap-south-1 (Mumbai)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-c36756ac

eu-west-1 (Ireland)

spotinst.io/runtime-0.3.26-amazon-linux-2-amd64-hvm-ebs-2018-07-11
ami-201003ca

* If you wish to create the deployment in another region please reach out to support@spotinst.com

5. Use the following User data script in the “Compute” tab under Additional Configurations

#!/usr/bin/env bash
SPOTINST_ACCOUNT_ID=act-xxxxx \
SPOTINST_DEPLOYMENT_ID=dp-xxxxx \
SPOTINST_TOKEN=<ENTER YOUR TOKEN HERE> \
lb-installer --log.verbosity=5

Where SPOTINST_ACCOUNT_ID represents your Spotinst Account IDSPOTINST_DEPLOYMENT_ID is the deployment ID from the previous step and SPOTINST_TOKEN is your Spotinst API Token.

6. Selecting the Multai integration in the Integrations section under “Compute” tab and selecting the deployment-name from the drop-down menu

Continue and create the Elastigroup. The Runtime servers will launch within a few minutes.

3. Create Load Balancer

Create the Load balancer in the console at Balancers -> Create Balancer in the top right corner of the screen.

 

4. Validate that the Runtimes show under the deployment

After the instances finished launching, they will be visible under Runtimes-> Your Deployment screen.