Help Center/ Data Warehouse Service/ User Guide/ DWS Cluster O&M/ Viewing and Subscribing to DWS Cluster Alarms/ DWS Alarm Handling/ DWS_2000000030 The Connections Usage in the Data Warehouse Cluster Exceeds the Threshold
Updated on 2026-10-16 GMT+08:00

DWS_2000000030 The Connections Usage in the Data Warehouse Cluster Exceeds the Threshold

Alarm Description

This alarm is generated by the DMS alarm module if the session usage in the cluster goes beyond the set threshold within a specific time frame and the suppression conditions are not met. The alarm will be cleared once the session usage in the cluster drops below the threshold.

Alarm Attributes

Alarm ID

Alarm Category

Alarm Severity

Alarm Type

Service Type

Auto Cleared

DWS_2000000030

Tenant plane

> 90 (Critical); > 80 (Major)

Service alarm

DWS

Yes

Alarm Changes

Change Type

Change Version

Description

Reason for Change

New

9.1.0.227

New alarm

New alarm

Alarm Parameters

Type

Parameter

Description

Fault Location

Cluster name

Cluster for which the alarm is generated.

Tenant name

Name of the tenant to which the cluster belongs.

Alarm level

Severity of the alarm.

Additional Information

Resource ID

ID of the cluster for which the alarm is generated.

Resource name

Cluster for which the alarm is generated.

First_alarm_time

First occurrence time of an alarm, including the alarm threshold and current value.

Alarm Metrics

Call the Querying Collected Data of a Specified Metric - ListMetricsData API to obtain the alarm metric. The metric name in the API is QueryMonitor.

  • Example request:
    GET https://{Endpoint}/v1/{project_id}/clusters/{cluster_id}/dms/metrics/QueryMonitor?offset=0&limit=1&from=1786782138946&to=1786784159004&order_by=ctime&sort_by=desc
  • Example response:

    The alarm metric is the count parameter (number of data records) in the response.

    {
     "code": 0,
     "msg": "OK",
     "data": [
      {
       "query_id": "80220368369538752",
       "backend_start": 1786783088,
       "pid": "140504051222312",
       "block_time": 0,
       "application_name": "OM",
       "estimate_total_time": 0,
       "memory_skew_percent": 0,
       "max_peak_memory": 0,
       "iops_skew_percent": 0,
       "min_peak_memory": 0,
       "ctime": 1786783088000,
       "warning": "",
       "min_cpu_time": 0,
       "total_cpu_time": 0,
       "dntime_skew_percent": 0,
       "average_spill_size": 0,
       "query": "/* autopilot */ SELECT pgsac.datname as db_name, pgws.nodename as inst_name, pgsac.pid as pid, pgsac.query_id as query_id, pgws.query_band, null as job_name, null as job_inst, pgsac.usename as user_name, pgsac.application_name, pgsac.client_addr as client_address, pgsac.client_hostname, pgsac.client_port, pgsac.waiting, extract('epoch' from pgws.start_time at time zone 'UTC')::bigint as start_time, pgswlm.block_time, pgws.duration, pgws.estimate_total_time, pgws.estimate_left_time, pgswlm.enqueue, pgswlm.priority, pgsac.resource_pool, pgws.control_group, pgws.min_peak_memory, pgws.max_peak_memory, pgws.average_peak_memory, pgws.memory_skew_percent, pgws.estimate_memory, pgws.spill_info, pgws.min_spill_size, pgws.max_spill_size, pgws.average_spill_size, pgws.spill_skew_percent, pgws.min_dn_time, pgws.max_dn_time, pgws.average_dn_time, pgws.dntime_skew_percent, pgws.min_cpu_time, pgws.max_cpu_time, pgws.total_cpu_time, pgws.cpu_skew_percent, pgws.warning, pgws.average_peak_iops, pgws.iops_skew_percent, pgws.ma",
       "priority": 2,
       "start_time": 0,
       "max_spill_size": 0,
       "db_name": "postgres",
       "average_peak_memory": 0,
       "query_plan": "",
       "query_band": "",
       "job_inst": "",
       "wlm_attrib": "Internal",
       "spill_info": "",
       "virtual_cluster_id": 81882,
       "waiting": false,
       "average_dn_time": 0,
       "user_name": "Ruby",
       "min_spill_size": 0,
       "query_status": "active",
       "resource_pool": "root",
       "duration": 0,
       "client_port": "-1",
       "estimate_memory": 0,
       "elapsed_time": 0,
       "curr_xact_start": 1786783088,
       "client_address": "",
       "lane": "None",
       "query_elapsed_time": 0,
       "control_group": "",
       "average_peak_iops": 0,
       "query_start": 1786783088,
       "max_dn_time": 0,
       "cpu_skew_percent": 0,
       "min_peak_iops": 0,
       "enqueue": "None",
       "job_name": "",
       "client_hostname": "",
       "spill_skew_percent": 0,
       "system_query": true,
       "estimate_left_time": 0,
       "min_dn_time": 0,
       "wlm_status": "running",
       "max_peak_iops": 0,
       "inst_name": "cn_5001",
       "max_cpu_time": 0,
       "state_change": 1786783088
      }
     ],
     "count": 166
    }

Impact on the System

The number of available sessions is insufficient, affecting service execution.

Possible Causes

The value of max_connections is too small.

Procedure

  1. Log in to the DWS console.
  2. On the Alarm page, view the alarms generated in the last seven days.
  3. Choose Cluster > Cluster List and locate the cluster based on the cluster information in the alarm details.
  4. Click the cluster name to go to the cluster details page. On the cluster details page, click Parameter Modifications, search for max_connections in the search box on the right of the parameter list, and change its value.

    Figure 1 Modifying parameters

Alarm Clearance

This alarm is automatically cleared after the fault is rectified.

Related Information

None