Updated on 2022-06-23 GMT+08:00

Server Monitoring

ECSs are the core of live video streaming. Slight changes in ECS performance may greatly affect other cloud services. To monitor more fine-grained metrics, you can install the Agents on ECSs. For details, see Agent Installation and Configuration.

This section describes how to create alarm rules for ECS CPU usage, memory usage, and disk usage. It also includes how to configure an AS policy. When the ECS CPU usage reaches 90% for five consecutive times within 5 minutes, AS automatically adds an ECS to ensure stable service running.

Create an alarm rule.

  1. Log in to the management console.
  2. In the upper left corner, select a region and a project.
  3. Choose Service List > Cloud Eye.
  4. In the navigation pane on the left, choose Server Monitoring.
  5. Locate the target ECS. In the Operation column, click More and select Create Alarm Rule.
  6. On the Create Alarm Rule page, set parameters as prompted.

    When configuring Notification Object, select a topic from the drop-down list. For details about how to create a topic, see Creating a Topic.

    • CPU Usage, Memory Usage, and Disk Usage are metrics for ECS basic monitoring. (Agent) CPU Usage, (Agent) Memory Usage, and (Agent) Disk Usage are metrics for fine-grained OS monitoring.
    • You are advised to set Threshold of (Agent) CPU Usage, (Agent) Memory Usage, and (Agent) Disk Usage to Avg. ≥ 80%, and set Alarm Severity to Major. Create alarm rules for the three Agent metrics in which Threshold is set to Avg. ≥ 90% and Alarm Severity is set to Critical.

Configure an AS policy.

  1. Under Computing, select Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
  2. Click Create AS Group. For details, see Creating an AS Group.
  3. In the AS group list, locate the created AS group and click View AS Policy in the Operation column.
  4. On the AS Policies tab page, click Add. In the displayed Add AS Policy dialog box, set parameters based on Figure 1.
    Figure 1 Add AS Policy

After the alarm rule and AS policy are created, if the service volume soars and the specified threshold is reached, AS automatically adds an ECS and Cloud Eye immediately informs you of the resource exception.