このセクションでは、OceanBaseテナントのモニタリングメトリクスである キャッシュヒット率 について説明します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントの キャッシュヒット率 を照会できます。
block_cache
指標の紹介
統計範囲内のブロックキャッシュのヒット率。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| block_cache | block_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50009",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50008",@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 (50008, 50009) 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 (50008, 50009) and (con_id > 1000 or con_id = 1) and class < 1000
row_cache
指標の紹介
統計範囲内の行キャッシュのヒット率。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| row_cache | row_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50001",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50000",@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 (50000, 50001) 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 (50000, 50001) and (con_id > 1000 or con_id = 1) and class < 1000
plan_cache
指標の紹介
統計範囲内での実行計画キャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| plan_cache | plan_cache_hit_ratio | % |
計算式
100 * sum(rate(ob_plan_cache_hit_total{@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_plan_cache_access_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.0 より前のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_id, mem_used, access_count, hit_count from v$plan_cache_statOceanBase V4.0 以降のバージョン:
select /* MONITOR_AGENT */ tenant_id, mem_used, access_count, hit_count from V$OB_PLAN_CACHE_STAT
clog_cache
指標の紹介
統計範囲内でのコミットログキャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| clog_cache | clog_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50038",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50037",@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 (50037, 50038) 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 (50037, 50038) and (con_id > 1000 or con_id = 1) and class < 1000
bloom_filter_cache
指標の紹介
統計範囲内での、bloom filterキャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| bloom_filter_cache | bloom_filter_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50005",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50004",@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 (50004, 50005) 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 (50004, 50005) and (con_id > 1000 or con_id = 1) and class < 1000
location_cache
指標の紹介
統計範囲内での、locationキャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| location_cache | location_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50011",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50010",@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 (50010, 50011) 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 (50010, 50011) and (con_id > 1000 or con_id = 1) and class < 1000
fuse_row_cache
指標の紹介
統計範囲内での、FUSE行キャッシュのヒット率です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| fuse_row_cache | fuse_row_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50034",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50033",@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 (50033, 50034) 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 (50033, 50034) and (con_id > 1000 or con_id = 1) and class < 1000
schema_cache
指標の紹介
統計範囲内でのスキーマキャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| schema_cache | schema_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50036",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50035",@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 (50035, 50036) 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 (50035, 50036) and (con_id > 1000 or con_id = 1) and class < 1000
tmp_page_cache
指標の紹介
統計範囲内でのtmp pageキャッシュのヒット率を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| tmp_page_cache | tmp_page_cache_hit_ratio | % |
計算式
100 * 1 / (1 + sum(rate(ob_sysstat{stat_id="50050",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="50049",@LABELS}[@INTERVAL])) by (@GBLABELS))
取得SQL
OceanBase V3.0.0.0以降、V4.0未満のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (50049, 50050) 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 (50049, 50050) and (con_id > 1000 or con_id = 1) and class < 1000