Alert description
OCP supports configuring data disks (in GiB) for tenants within unit specifications, serving as the tenant's data storage quota at the zone level. This quota is a soft limit at the OCP layer: it is used only for capacity monitoring and alerts, does not reserve physical disk space, does not block data writes, and allows exceeding. The total data disk quota for different tenant units can exceed the actual disk space of the OBServer.
This alert is triggered when the data storage usage rate of a tenant in a zone, that is, the percentage of the data disk usage to the data storage quota, exceeds the threshold. OCP can calculate the usage rate only if the target tenant has an effective data disk quota in that zone. This alert applies only to clusters in shared-nothing mode with OBServer V4.0 or later.
Alert principle
Parameter |
Value |
|---|---|
| Monitoring Metrics | ob_tenant_zone_data_disk_usage: This metric indicates the data storage usage of an OceanBase tenant in a specified zone. An alert is triggered when the usage exceeds the threshold. |
| Monitoring Expression | 100 * sum(ob_tenant_zone_data_disk_in_use_bytes{@LABELS}) by (@GBLABELS) / (avg(ob_tenant_zone_unit_data_disk_quota_bytes{@LABELS}) by (@GBLABELS) * sum(ob_tenant_zone_data_disk_unit_count{@LABELS}) by (@GBLABELS)) |
| Metric Collection | ob_tenant_zone_data_disk_in_use_bytes、ob_tenant_zone_unit_data_disk_quota_bytes、ob_tenant_zone_data_disk_unit_count |
| Metric Source | Data disk usage and the number of units are obtained by OCP-Agent querying internal views of the sys tenant (for OceanBase Database V4.0 and later). The collection SQL is as follows: select t2.tenant_id, t1.zone, sum(t1.data_disk_in_use) as data_disk_in_use, count(*) as unit_count from (select unit_id, svr_ip, svr_port, zone, sum(data_disk_in_use) as data_disk_in_use from oceanbase.v$ob_units group by unit_id, svr_ip, svr_port, zone) t1 join oceanbase.dba_ob_units t2 on t1.unit_id = t2.unit_id and t1.svr_ip = t2.svr_ip and t1.svr_port = t2.svr_port group by t2.tenant_id, t1.zone; The data storage quota ob_tenant_zone_unit_data_disk_quota_bytes is calculated by OCP based on the data disk configuration in the unit specifications and published periodically, and is not collected from internal views. |
| Collection Cycle | 60 Seconds |
Rule information
Monitoring Metrics |
Default Threshold (Unit: %) |
Duration |
Detection Cycle |
Elimination Cycle |
|---|---|---|---|---|
| ob_tenant_zone_data_disk_usage | 80 (warning), 90 (critical) | 0 Seconds | 60 Seconds | 5 Minutes |
Alert information
Alert Trigger Method |
Alert Level |
Scope |
|---|---|---|
| Based on monitoring metric expressions | Warning, Critical | tenant |
Alert template
Alert Overview
- Template: ${alarm_target} ${alarm_name}
- Example: alarm_template_id=1:ob_cluster=C1-1000:tenant_name=T1:obzone=Z1 OceanBase tenant Zone data storage usage exceeds the limit
Alert details
- Template: Cluster: ${ob_cluster_name}, Zone: ${obzone}, Tenant: ${tenant_name}, Alert: OceanBase tenant zone data disk usage ${ob_tenant_zone_data_disk_usage_value_zh_cn} exceeds the threshold ${ob_tenant_zone_data_disk_usage_alarm_threshold} %, usage ${ob_tenant_zone_data_disk_used_bytes_value_zh_cn}, quota ${ob_tenant_zone_data_disk_quota_bytes_value_zh_cn}. This quota is an OCP soft limit; no physical disk is reserved and writes are not blocked.
- Example: Cluster: C1, zone: Z1, tenant: T1. The alert indicates that the data storage usage of the OceanBase tenant in zone Z1 has exceeded the threshold of 80%. The usage is 912 GiB and the quota is 1073 GiB. This quota is an OCP soft limit. No physical disk is reserved and write operations are not blocked.
Alert recovery
- Template: Alert: ${alarm_name}, OceanBase Tenant Zone Data Storage Usage: ${recover_value}
- Example: Alert: OceanBase tenant zone data storage usage exceeds the limit. OceanBase tenant zone data storage usage: 75 %.
Impact on the system
Data storage quotas are soft limits. Exceeding the quota does not block writes, and tenant data will continue to occupy the OBServer's physical data disk. Since the total data disk quota for different units can exceed the actual disk space of an OBServer, prolonged over-quota usage may exhaust the physical disk. It is recommended to also monitor the ob_host_data_disk_percent_over_threshold OCP Server Data Directory Disk Usage Exceeds Threshold alert to prevent the physical data disk from being filled to capacity.
Possible causes
- The data volume of the tenant is growing and is about to reach or has already exceeded the data disk size specified in the unit configuration.
- The number of units or the data disk specifications in a single zone are small, resulting in a low data storage quota for that zone.
- Data that has not been cleaned up in a timely manner, such as objects in the recycle bin.
Solution
- In the Replica Details section of the tenant overview page, or in Resource Management > Unit Distribution of cluster management, view the data disk size and unit distribution for each zone. Refer to the monitoring charts to identify the source of the increasing data storage usage.
- If the data growth meets business expectations, request a unit with a larger data disk quota for the target tenant's application in this zone. After the resource change task is completed and monitoring metrics are updated, confirm that the total quota (
ob_tenant_zone_data_disk_quota_bytes) for this zone has increased. For information about how to configure unit specifications, see Manage unit specifications. - Clean up unnecessary data, such as emptying the recycle bin.
- This quota is a soft limit for OCP and does not block writes. Please timely expand storage or clean up data based on the physical disk usage to prevent insufficient disk space from affecting cluster operations.