Spotinst raises $15M Series A Led By Intel Capital and Vertex Ventures Read The Official Press Release

Elastigroup and MLB integration – Automatically add MLB Targets via Elastigroup

You can now automatically add your Elastigroup instances as targets for Multai Load Balancer

We’re very happy to announce the integration of our brand new Multai Load Balancer with Elastigroup! You can now finally integrate the MLB with with Elastigroup directly from the Console.

To start you will need to create a new MLB load balancer. You can follow our previous blog post on configuring MLB in AWS here: http://blog.spotinst.com/2017/03/23/multai-load-balancer-install-tutorial-aws/

Next follow the steps below to configure the Elastigroup and MLB integration:

  1. Open your Elastigroup from the Spotinst Console.
  2. From the “Actions” menu select “Edit Configuration”
    spotinst-_-console-google-chrome-2017-03-27-15-24-49
  3. Click on the “Compute” page and scroll down to “Multai” as you can see below:
    Paste in the “Multai Token” that you used during the creation of the MLB Balancer (Instructions in the link above). The green tick box should appear next to the “Multai Token” field if you entered a valid token. You can also create a new API token if you like directly from the MLB console. 
  4. From the drop down select the “Project” “Balancer” and “Target Set” for the balancer that you created.
  5. The option “AZ Awareness” will ensure that instances within the same AZ are using the corresponding MLB runtime instance in the same AZ. This feature reduces multi-zone data transfer fees.
  6. The option “Auto Weight” will automatically provide a higher weight for instances that are larger as appropriate. For example, if you have configured your Elastigroup with m4.large and m4.xlarge instances the m4.large will have half the weight of an m4.xlarge. This ensures that larger instances receive a higher number of MLB requests as appropriate and further optimizes your Elastigroup instances.
  7. You also have the option of using the MLB as a health check. Instances that do not pass the MLB health check within a specified time frame will automatically be terminated and new instances will be launched to replace them. You can also set the health check on the “Compute” tab of the edit wizard as you can see below:
    spotinst-_-console-google-chrome-2017-03-27-15-14-37
  8. When finished, update your Elastigroup and Perform a roll when prompted. You can also manually perform a roll later.
  9. Verify that the new Elastigroup instances were added to your MLB Load Balancer. Instance that have been added via the Elastigroup integration will have the name field set as the EC2 instance ID.

Things to note:

  • MLB Runtime nodes will need to be in a public subnet (Internet Gateway Attached) and belong to the same VPC as your Elastigroup. These nodes will require private routes from to your Elastigroup instances.
  • A good test prior to configuring the Elastigroup integration is to SSH into one of your MLB Runtime nodes and perform a curl to the health check address for your application. If this functions properly then you are are ready to configure the integration
  • For more information please review the MLB on AWS deployment guide here: http://blog.spotinst.com/2017/03/23/multai-load-balancer-install-tutorial-aws/

That’s it! we hope you enjoy the integration of our two products and we’ll be announcing new features in the coming weeks and months.

If you have any question or a comment, please feel free to reach us at support@spotinst.com

Best,
The Spotinst Team.

Aharon Twizer
Spotinst, Co-Founder and CTO

Stay current

Sign up for our newsletter, and we'll send you the latest updates on Spotinst, tips, tutorials and more cool stuff!