Configuring Alarm Rules for Critical Metrics

This section describes the alarm rules of some metrics and how to configure the rules. In actual scenarios, configure alarm rules for metrics by referring to the following alarm policies.

Alarm Policies for DCS Redis Instances

Table 1 DCS Redis instance metrics to configure alarm rules for

Metric

Normal Range

Alarm Policy

Approach Upper Limit

Handling Suggestion

CPU Usage

0-100

Alarm threshold: 70

Number of consecutive periods: 2

Alarm severity: Major

No

Consider capacity expansion based on the service analysis.

The CPU capacity of a single-node or master/standby instance cannot be expanded. If you need larger capacity, use a cluster instance instead.

This metric is available only for single-node, master/standby, and Proxy Cluster instances. For Redis Cluster instances, this metric is available only on the Redis Server level. You can view the metric on the Redis Server tab page on the Performance Monitoring page of the instance.

Average CPU Usage

0~100%

Alarm threshold: > 70%

Number of consecutive periods: 2

Alarm severity: Major

No

Consider capacity expansion based on the service analysis.

The CPU capacity of a single-node or master/standby instance cannot be expanded. If you need larger capacity, use a cluster instance instead.

This metric is available only for single-node and master/standby instances. For instances, this metric is available only on the Redis Server level. You can view the metric on the Redis Server tab page on the Performance Monitoring page of the instance.

Memory Usage

0-100

Alarm threshold: 70

Number of consecutive periods: 2

Alarm severity: Major

No

Expand the capacity of the instance.

Connected Clients

0-10,000

Alarm threshold: 8000

Number of consecutive periods: 2

Alarm severity: Major

No

Optimize the connection pool in the service code to prevent the number of connections from exceeding the maximum limit.

For single-node and master/standby instances, the maximum number of connections allowed is 10,000. You can adjust the threshold based on service requirements.

Configure this alarm policy on the instance level for single-node and master/standby instances. For cluster instances, configure this alarm policy on the Redis Server and Proxy level.

New Connections

(Count/min)

0-10,000

Alarm threshold: 10,000

Number of consecutive periods: 2

Alarm severity: Minor

-

Check whether connect is used and whether the client connection is abnormal. Use persistent connections ("pconnect" in Redis terminology) to ensure performance.

Configure this alarm policy on the instance level for single-node and master/standby instances. For cluster instances, configure this alarm policy on the Redis Server and Proxy level.

Input Flow

> 0

Alarm threshold: 80% of the assured bandwidth

Number of consecutive periods: 2

Alarm severity: Major

Yes

Consider capacity expansion based on the service analysis and bandwidth limit.

Configure this alarm only for single-node and master/standby DCS Redis 3.0 instances and set the alarm threshold to 80% of the assured bandwidth of DCS Redis 3.0 instances.

Output Flow

> 0

Alarm threshold: 80% of the assured bandwidth

Number of consecutive periods: 2

Alarm severity: Major

Yes

Consider capacity expansion based on the service analysis and bandwidth limit.

Configure this alarm only for single-node and master/standby DCS Redis 3.0 instances and set the alarm threshold to 80% of the assured bandwidth of DCS Redis 3.0 instances.

Procedure

In the following example, an alarm rule is set for the CPU Usage metric.

  1. Log in to the DCS console.

  2. Click image1 in the upper left corner and select a region and a project.

  3. In the navigation pane, choose Cache Manager.

  4. In the same row as the DCS instance whose metrics you want to view, choose More > View Metric.

    **Figure 1** Viewing instance metrics

    Figure 1 Viewing instance metrics

  5. Locate the CPU Usage metric. Hover over the metric and click image2 to create an alarm rule for the metric.

    The Create Alarm Rule page is displayed.

  6. Specify the alarm rule details.

    1. Specify the alarm policy and alarm severity.

      For example, the alarm policy shown in the following figure indicates that an alarm will be triggered if the CPU usage exceeds the threshold for two consecutive periods.

      **Figure 2** Setting the alarm content

      Figure 2 Setting the alarm content

    2. Set the alarm notification configurations. If you enable Alarm Notification, set the validity period, notification object, and trigger condition.

    3. Click Create.

      Note

      • For more information about creating alarm rules, see the Cloud Eye User Guide > Using the Alarm Function > Creating Alarm Rules.

      • For details about how to modify or disable the created alarms, see "Using the Alarm Function" > "Alarm Rule Management" in the Cloud Eye User Guide.