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 Elastogroup.

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.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-7e07d903

eu-central-1 (Frankfurt)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-9894c973

us-west-2 (Oregon)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-caa932b2

ap-southeast-1 (Singapore)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-23c0995f

sa-east-1 (Sao Paulo)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-fe683f92

ap-northeast-1 (Tokyo)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-47dec83b

eu-west-1 (Ireland)

spotinst.io/runtime-0.3.15-amazon-linux-2-amd64-hvm-ebs-2018-03-27
ami-1f3f6d66

* 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.

4. Create Load Balancer

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

 

5. Validate that the Runtimes show under the deployment

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