Skip to main content
Version: 2.1

Launch Auto Scaling Group (ASG)

An Auto Scaling Group (ASG) automatically adds or removes instances in response to changing workload demand. This page describes how to create and configure an ASG.

Before you begin​

  • Ask an administrator to create a private network for the VMs in your ASG.
  • Create a load balancer for the ASG.
  • Identify the metrics that you want to track.
  • Determine the scale-up and scale-down behavior that you want to configure.

Create an Auto Scaling Group​

  1. In the CubeCMP management console, go to Auto Scaling.

    Auto Scaling overview page

  2. Click + Add Auto Scaling Group.

  3. In the Name field, enter a descriptive name for the ASG.

  4. Select a VPC Network to use with the ASG.

  5. In the Choose an Image section, select an existing image, snapshot, backup, or custom image to use as the machine template.

    Name, VPC Network, and Choose an Image sections

  6. Select an Instance Type that matches your workload:

    • Basic
    • CPU-optimized
    • Memory-optimized
    • Storage-optimized

    Select an instance type section

  7. Select the Load Balancer Rules to apply to the ASG.

  8. On the Authentication tab, select an authentication method:

    Select an existing SSH key, or add a new one, to use for instance access.

    Load Balancer Rules and SSH Key Authentication sections

  9. Optional: In the User Data Script field, enter a script to run when an instance initializes.

  10. In the Approval and Expiration section, enter a justification in the Justification field.

  11. Choose an Expiration period.

    Approval and Expiration, Metrics, and Behavior/Replicas sections

  12. Click Add Metric Rule to add a scaling metric.

    info

    The ASG scales when any of the following metrics meet the threshold you set:

    • Average CPU usage (%)
    • Average memory usage (%)
    • Average network inbound usage (packets)

    Metric rule and Replicas sections

  13. Set the Min and Max replica counts to define the scaling range for the ASG.

  14. Configure the scaling behavior:

    1. Scale up: Specify the number of instances that must meet the metric threshold, and set a stabilization window.
    2. Scale down: Specify the number of instances that must meet the metric threshold, and set a stabilization window.

    Scale up/down stabilization window and Create Auto Scaling Group button

  15. Click Create Auto Scaling Group.

    Auto Scaling overview page showing the newly created, active ASG