Multai load balancer uses Runtime instances as hosts to run the Load Balancers.
We want to allow our users to effortlessly run Runtime Nodes as Elastigroups, meaning that the Runruntimes will be fully managed by Elastigroups. Using Elastigroups as a workload management solution will also include scaling rules and monitoring for the Runtimes.
To integrate the Elastigroup with Multai please follow these instructions:
Step One - Creating a Deployment and Runtime
Navigate to the Multai Runtime screen and create a deployment
Provide a name for the Deployment That will be a logical container for the Runtimes
After the Deployment is created, Copy on the Deployment ID to be used in the next section
Step Two - Create an Elastigroup with GCP or Azure
Follow this guide: Creating an Elastigroup while following these steps:
- We recommend starting with a Capacity of 2 instances setting the target and minimum to "2"
- The subnets that you choose will have access to an Internet Gateway
- Select an Image of systemD OS such as: "CentOS 7" or "Ubuntu 16"
- Use the following User data script in the "Compute" tab under Additional Configurations
#!/usr/bin/env bash curl -fsSL http://spotinst-public.s3.amazonaws.com/services/balancer/runtime/bootstrap/bootstrap.sh | \ SPOTINST_ACCOUNT_ID=act-xxxxxxx \ SPOTINST_DEPLOYMENT_ID=dp-xxxxxxx \ SPOTINST_TOKEN=<ENTER YOUR TOKEN HERE> \ bash
- Hit next to move to the scaling Tab
Optional - Step three - Create Scaling Rules
This is an optional step introducing load-based scaling to the deployment cluster. For CPU centric loads you can create a step scaling rule based on desired CPU usage
CPU >= 60% for 3 consecutive periods of 1m => Add 1 instance
CPU >= 70% for 3 consecutive periods of 1m => Add 2 instance
CPU >= 80% for 1 consecutive periods of 1m => Add 2 instance
If your workload has more network consumption than CPU please contact our support (email@example.com) to get advice on scaling based on active connections etc.
Continue with the group creation and launch you Runtimes
Step four - validate the runtime show under the deployment
After the instances finished launching, you should see new hosts under the Deployment Runtime screen.