Scheduled Update Plan for Scaling Policy

Last updated: 2021-06-28 10:09:36

    Overview

    This document describes how to configure the scheduled update plan for auto-scaling policy after you deploy the server fleet successfully.

    Prerequisites

    You have created a server fleet.

    Directions

    1. Log in to the GSE console and click Fleet on the left sidebar.
    2. Click the ID of the created server fleet to enter the fleet details page. Click the Scaling tab to enter the scaling page.
    3. Click Add in the Scheduled Update Plan for Scaling Policy section.

    The scheduled update plan for scaling policy includes the setting of auto scaling policy and repeat cycle.

    Auto scaling policy

    The adjustment mode of the auto scaling policy includes automatic adjustment and manual adjustment.

    Manual adjustment

    • Instance Range: it is in the format of minimum number of instances – maximum number of instances and is in integer type. The desired quantity should not exceed the specified instance range. If the first deployment of asset package fails, you can set this field to 0–1 only.
    • Desired Quantity: it takes effect for manual adjustment. After being configured, it will become the only metric based on which the instance quantity will be adjusted.
    • Scaling Cooldown Time: indicates the time interval between two scaling operations. It can be set from 1 to 30 minutes, which is determined by the duration of the server's process launch.

    Automatic adjustment

    • Instance Range: it is in the format of minimum number of instances – maximum number of instances and is in integer type. Automatic adjustment cannot exceed the specified instance range. You cannot set this field if the first deployment of asset package fails.
    • Desired Quantity: generally, this metric does not take effect in automatic adjustment. However, if the game server session buffer and other automatic adjustment policies are not configured, GSE will adjust the number of instances with this metric.
    • Game Server Session Buffer: represents the proportion of reserved idle instance resources for game server sessions, and automatic adjustment will scale with it.
    • Scaling Cooldown Time: indicates the time interval between two scaling operations. It can be set from 1 to 30 minutes, which is determined by the duration of the server's process launch.
    Note:

    The sum of max instance range in a single region of an account cannot exceed the highest quota of each region. You can view the regional quotas in Resource Limits. To increase the CVM instance quota, please submit a ticket.

    Repeat cycle

    • Repeat Cycle: the scaling policy can be executed once, or can be repeated daily, weekly, and monthly.
    • Execution Start Time: the start time of the scheduled update plan for scaling policy.
      1. If you select Once for the Repeat Cycle, the scaling policy will be executed once based on the specific time that you choose.

        As shown in the figure below, the scaling policy will be executed once at 2021-06-17 15:31.
      2. If you select By Day for the Repeat Cycle, the scaling policy will be executed every N days based on the execution period that you choose.

        As shown in the figure below, the scaling policy will be executed every other day from 2021-06-17 15:36 to 2022-06-17 15:36.
      3. If you select By Week for the Repeat Cycle, the scaling policy will be executed every week (based on the selected days) in the execution period that you choose.

        As shown in the figure below, the scaling policy will be executed every Monday and Wednesday from 2021-06-17 15:38 to 2022-06-17 15:38.
      4. If you select By Month for the Repeat Cycle, the scaling policy will be executed on the day N to the day M of each month in the execution period that you choose.

        As shown in the figure below, the scaling policy will be executed on the 3rd to 5th day of each month from 2021-06-17 15:39 to 2022-06-17 15:39.
    1. Click Confirm. After creating the policy, you can view, modify or delete it or perform other operations in the Server Fleet Details > Scaling page.