All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Create a scaling plan

Last updated:2021-05-21 17:42:57

You can create a complete scaling plan with three steps.

Step 1: Create a launch configuration

A launch configuration defines the configuration of Kingsoft Cloud Elastic Compute (KEC) instances used in Auto Scaling, such as the image, instance type, and storage.

Note: You can create launch configurations for free.

  1. Log in to the Auto Scaling console.

  2. In the left navigation pane, click Launch Configuration.

  3. Select a region from the top navigation bar.

    When you select a region, only KEC instances in this region can be added to the scaling group associated with the launch configuration and only a Server Load Balancing (SLB) instance in this region can be attached to the scaling group.

    For example, if you select the CN North 1(Beijing) region for the launch configuration, only KEC instances in this region can be automatically added to the scaling group. Additionally, you can only attach an SLB instance in this region to the scaling group.

  4. Click Create. The page for configuring a launch configuration appears.

  5. Select an instance type.

    Select the type of the KEC instances to be added to the scaling group.

  6. Select an image.

    You can select a standard image, a custom image, a shared image, or an image from the marketplace.

  7. Configure basic information.

    Configure basic information of the launch configuration, such as the name and administrator password.

  8. Confirm the configuration and then click Buy Now. The launch configuration appears in the launch configuration list.

Step 2: Create a scaling group

A scaling group is a collection of KEC instances that are created with the same configuration and used in the same scenario.

  1. Log in to the Auto Scaling console.
  2. In the left navigation pane, click Scaling Group.

  3. Click Create. The page for configuring a scaling group appears.

  4. Enter the name of the scaling group.

  5. Set the minimum number, expected number, and maximum number of KEC instances in the scaling group. The expected number of KEC instances specifies the initial number of KEC instances in the scaling group when the scaling group is created. The number of KEC instances in the scaling group will be maintained between the maximum number and minimum number that you set.

    • If the number of KEC instances in the scaling group is less than the minimum number, Auto Scaling automatically adds KEC instances until the number of KEC instances equals the minimum number.

    • If the number of KEC instances in the scaling group is greater than the maximum number, Auto Scaling automatically removes KEC instances until the number of KEC instances equals the maximum number.
  6. Select a removal policy and an existing launch configuration.

  7. Set the associated Virtual Private Cloud (VPC), associated subnet, server IP addresses, and security group (firewall).

  8. (Optional) Select an existing SLB instance to be attached to the scaling group and set the listener and server ports.

  9. Click Finish. The scaling group appears in the scaling group list.

Step 3: Create a scaling policy

Auto Scaling automatically adds or removes KEC instances in a scaling group based on your scaling policy.

You can create a scheduled task to execute scaling activities at a specified time. If the business changes are regular, you can also enable the repetition of the scheduled task.

Create a scheduled task

If your load changes are predictable, you can create a scheduled task to automatically add or remove KEC instances at a specified time or periodically. This feature flexibly adjusts KEC instances to meet your business needs, improving device utilization and saving the costs in purchasing and deploying KEC instances.

  1. On the Scaling Group page, find the target scaling group and click Manage in the Operation column. The details page of the scaling group appears.

  2. Click the Scheduled Task tab and click Create.

  3. In the Create Scheduled Task dialog box that appears, set the parameters such as Name, Execution Start Time, and Scaling Group Activity. You can also select Repeat to enable the repetition of the scheduled task.

  4. Click OK. The scheduled task appears in the scheduled task list.

Create an alarm-triggered policy

If you want to add or remove KEC instances based on a specified metric, you can create an alarm-triggered policy. When the value of the specified metric reaches the threshold, Auto Scaling automatically adds or removes KEC instances to flexibly meet your business needs, improving device utilization and saving the costs in purchasing and deploying KEC instances.

  1. On the Scaling Group page, find the target scaling group and click Manage in the Operation column. The details page of the scaling group appears.

  2. Click the Alarm-Triggered Policy tab and click Create.

  3. In the Create Alarm-Triggered Policy dialog box that appears, configure a monitoring metric, such as CPU or memory usage, and the scaling activity. Auto Scaling then automatically adds or removes a specified number or percentage of KEC instances in the scaling group based on the specified metric.

  4. Click OK. The alarm-triggered policy appears in the alarm-triggered policy list.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback