首批通过分布式安全可靠测评,为关键业务系统打造
请求等待队列耗时
更新时间:2026-04-14 11:55:54
本节为您介绍 OceanBase 集群的性能指标 请求等待队列耗时 。您可指定统计范围,查询 OceanBase 集群在单个 Zone 或 OBServer 节点的 请求等待队列耗时 。
指标介绍
SQL 请求在等待队列中等待耗时。
指标参数说明
| 指标项 | 指标名称 | 单位 |
|---|---|---|
| queue_time | request_queue_time | μs |
计算表达式
sum(rate(ob_sysstat{stat_id="20002",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="20001",@LABELS}[@INTERVAL])) by (@GBLABELS)
SQL 采集
OceanBase V4.0 以下版本:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (20001, 20002) and (con_id > 1000 or con_id = 1) and class < 1000OceanBase V4.0 及以上版本:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (20001, 20002) and (con_id > 1000 or con_id = 1) and class < 1000