fbpx

Prerequisites:

  • An AWS account with configured Auto-Scaling groups
  • A Spotinst account connected to an AWS account
Note: This tutorial describes the creation process of an Elastigroup cluster VIA the Spotinst console. In case you require to create and configure your Elastigroup cluster VIA API or CI\CD tools, please read our documentation for the exact commands of API, CloudFormation, or Terraform.
    1. In the Spotinst console, Click on “Elastigroups” on the left-hand menu.
      In the “Use-Cases” menu, select “Auto Scaling Group
    2. Select the Region and then select the ASG you wish to create an Elastigroup cluster from and click “Next”.
      The Spotinst platform automatically creates the Elastigroup based on the parameters imported from AWS regarding the specific ASG.
    3. After the initial creation, we will walk through every tab and review the configuration.
    4. Browse to the “General” tab:
      1. Name: Select a name for the Elastigroup cluster

      2. Capacity: Select the Target\Minimum\Maximum number of instances for the Elastigroup.

      3. Advanced: Complete the advanced configuration based on your requirements.

        Note: For more information on the “Advanced” configuration, please read our extended documentation explaining each parameter

      4. Scheduling: You can create a schedule for the Elastigroup in Cron expression.
        Note: For more information on configuring a “Schedule”, please read our documentation.
    5. Browse to the “Compute” tab:
      1. VPC: Verify that the VPC selected is the correct one. 
      2. Product: Verify that the Product selected is the correct one.
      3. On-Demand Type: Select the On-Demand Instance type that the Elastigroup will fall-back to in cases in which the Spot Market is unavailable.
      4. Availability Zones: Select the “availability zones” in which the Elastigroup cluster will be able to run, and select the relevant Subnet\s. 
        Note: In order to have a more diverse Spot market, it’s recommended to select multiple AZ’s and their corresponding Subnet\s.
        Note: For more information regarding the Spot Market Scoring, please read our documentation.

      5. Spot Types: Select the eligible instance types you wish to have in your Elastigroup.
        Note: It’s recommended to select multiple instance types, thus in order to increase the Spot Market Scoring.

      6. Launch Specification: In this section, you can configure which image the instance will launch with, Security groups, Key-Pairs and related AWS tags.

      7. Additional Configurations: In this section, you can configure additional items related to your Elastigroup.
        Note: Note: You can hover over the tooltip of every item to learn more regarding that specific configuration.
      8. Auto-Healing: In this section, you can configure which type of Health checks will be performed on the instance.
        Note: For more information regarding “Auto-Healing”, please read our documentation.

    6. Browse to the “Scaling” Tab:
        1. In this section, you can configure scaling and termination policies, in cases that you will need to scale instances to support the load of your web application. For more information regarding Elastigroup’s scaling policies, please read our documentation:

    7. Browse to the “Review” tab
      1. Under “Summary” you can review the final configuration of your Elastigroup.
      2. In addition to that, the Spotinst console automatically generates a template of your Elastigroup to be used VIA Cloudformation or Terraform.
        On the bottom right corner, click on “Create” and wait until your Elastigroup is created.