Updated on 2024-05-25 GMT+08:00

Configuring a Time AS Policy

This section describes how to configure a time AS policy. You can configure a time policy to periodically scale instances. This frees you from repeatedly adjusting resources to keep up with service changes and peak pressures, helping you reduce resources and labor costs.

CAE instance scaling is calculated by current and expected metrics.

Expected instances = ceil [Current instances * (Current metrics/Expected metrics)] (ceil is rounded up.)

There is an error tolerance of 10% to prevent frequent fluctuation of instance quantity, so there is no scaling when Current metrics/Expected metric ranges from 0.9 to 1.1.

Application Scenario

This policy is useful for periodic resource usage, mainly in industries such as securities, healthcare, and education.

Procedure

  1. Log in to CAE.
  2. Choose Component Configurations.
  3. Select the target component from the drop-down list in the upper part of the page.

    Figure 1 Selecting a component

  4. Click Edit in the AS Policies module.
  5. Select Time and configure the policy by referring to Table 1.

    Table 1 Configuring a time policy

    Parameter

    Description

    Max. Instances

    Max. number of instances that can be reached during scale-out.

    Value range: 1 to 99.

    NOTE:

    Max. Instances must be greater than Min Instances.

    Min Instances

    Min number of instances that can be reached during scale-in.

    Value range: 1 to 99.

    Trigger Cycle

    The policy is expected to be executed at a specified interval. Value: Every day, Every day, or Monthly.

    Trigger Time in a Day

    This parameter is mandatory when Trigger Cycle is set to Every day.

    Configure the policy triggered every day.

    For example, the number of instances remains 3 after 18:00 every day.

    Click Add Trigger Time to add more time policies.

    Trigger Time in a Week

    This parameter is mandatory when Trigger Cycle is set to Every week.

    Configure the policy triggered every week.

    For example, the number of instances remains 4 after 08:00 on every Monday.

    Click Add Trigger Time to add more time policies.

    Trigger Time in a Month

    This parameter is mandatory when Trigger Cycle is set to Monthly.

    Configure the policy triggered every month.

    For example, the number of instances remains 4 after 06:00 on the fifth day of each month.

    Click Add Trigger Time to add more time policies.

    You can configure time segments to control instance scaling.

    For example, set Trigger Cycle to Every day, and set From 18:00 and Instances 3, and From 00:00 and Instances 1. The system keeps 1 instance from 00:00 to 18:00, and 3 instances from 18:00 to 00:00 every day.

    Figure 2 Configuring a time policy

  6. Click OK.
  7. Click Activate Settings in the upper part of the page. In the dialog box displayed on the right, confirm the configurations and click OK for the configurations to take effect.