このセクションでは、OceanBaseテナントのパフォーマンス指標であるMemStoreロック取得成功率について説明します。MemStoreロック取得成功率指標は、OceanBaseテナントのMemStoreロック取得成功率を集計するために使用されます。この指標は、memstore_read_lock_succ_ratioとmemstore_write_lock_succ_ratioという2つのサブ指標に細分化され、テナントのXAステートメントの実行時間を集計します。統計範囲を指定することで、単一ゾーンまたはOBServerノードにおけるテナントのMemStoreロック取得成功率を照会できます。
memstore_read_lock_succ_ratio
指標の概要
OceanBaseテナントのMemStore読み取りロック取得成功率です。
指標パラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| memstore_read_lock_succ_ratio | memstore_read_lock_succ_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="60020",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="60019",@LABELS}[@INTERVAL])) by (@GBLABELS))
クエリSQL
OceanBase V2.2.70以降、V4.0未満のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (60019, 60020) 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 (60019, 60020) and (con_id > 1000 or con_id = 1) and class < 1000
memstore_write_lock_succ_ratio
指標の概要
OceanBaseテナントのMemStore書き込みロック取得成功率です。
指標パラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| memstore_write_lock_succ_ratio | memstore_write_lock_succ_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="60022",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="60021",@LABELS}[@INTERVAL])) by (@GBLABELS))'
クエリSQL
OceanBase V2.2.70以降、V4.0未満のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (60021, 60022) 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 (60021, 60022) and (con_id > 1000 or con_id = 1) and class < 1000