このセクションでは、OB SSモードにおけるマクロブロックキャッシュのヒット率に関する指標について説明します。
説明
以下の監視グループは OceanBase共有ストレージ(SS)モード に適用され、OBクラスタのバージョンは ≥ 4.6.2.0 である必要があります。収集条件は ob_mode_is_shared_storage です(SSモードでのみ収集)。
ob_ss_macro_cache_hit_ratio
指標の概要
OB SSモードにおけるマクロブロックキャッシュ全体のヒット率。
指標パラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_macro_cache_hit_ratio | ob_ss_macro_cache_hit_ratio | % |
計算式
100 * avg(rate(ob_ss_macro_cache_hit_cnt{@LABELS}[@INTERVAL])) by (@GBLABELS) / (avg(rate(ob_ss_macro_cache_hit_cnt{@LABELS}[@INTERVAL])) by (@GBLABELS) + avg(rate(ob_ss_macro_cache_miss_cnt{@LABELS}[@INTERVAL])) by (@GBLABELS))
SQL収集
基盤指標 ob_ss_macro_cache_hit_cnt、ob_ss_macro_cache_miss_cnt は、OB SSモードのマクロブロックキャッシュ統計項目からエクスポートされます:
select tenant_id,TOTAL_HIT_CNT as hit_cnt,TOTAL_MISS_CNT as miss_cnt from GV$OB_LOCAL_CACHE where cache_name = "ss_macro_cache" and svr_ip = ? and svr_port = ?
適用バージョン:OceanBase V4.6.2.0 以降 (SSモード)
ob_ss_macro_cache_meta_hit_ratio
指標の概要
OB SSモードにおけるMetaマクロブロックのヒット率。
指標パラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_macro_cache_meta_hit_ratio | ob_ss_macro_cache_meta_hit_ratio | % |
SQL収集
OceanBase V4.3.5.1以降のバージョン(SSモード):
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245024, 245025) and (con_id > 1000 or con_id = 1)
ob_ss_macro_cache_tmp_file_hit_ratio
指標紹介
OB SSモードにおける一時ファイルマクロブロックのヒット率。
指標パラメータ説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_macro_cache_tmp_file_hit_ratio | ob_ss_macro_cache_tmp_file_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245030, 245031) and (con_id > 1000 or con_id = 1)
ob_ss_macro_cache_auto_hit_ratio
指標紹介
OB SSモードにおけるAutoタイプマクロブロックのヒット率。
指標パラメータ説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_macro_cache_auto_hit_ratio | ob_ss_macro_cache_auto_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245036, 245037) and (con_id > 1000 or con_id = 1)
ob_ss_macro_cache_hot_macro_hit_ratio
指標紹介
OB SSモードにおけるホットタブレットのマクロブロックヒット率。
指標パラメータ説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_macro_cache_hot_macro_hit_ratio | ob_ss_macro_cache_hot_macro_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245042, 245043) and (con_id > 1000 or con_id = 1)
ob_ss_private_macro_hit_ratio
指標紹介
OB SSモードにおけるプライベートマクロブロックのヒット率。
指標パラメータ説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_private_macro_hit_ratio | ob_ss_private_macro_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245046, 245047) and (con_id > 1000 or con_id = 1)
ob_ss_share_macro_hit_ratio
指標紹介
OB SSモードにおけるシェアードマクロブロックのヒット率。
指標パラメータ説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_share_macro_hit_ratio | ob_ss_share_macro_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245050, 245051) and (con_id > 1000 or con_id = 1)
ob_ss_external_table_disk_cache_hit_ratio
指標の紹介
OB SSモードにおける外部テーブルマクロブロックのヒット率です。
指標パラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| ob_ss_external_table_disk_cache_hit_ratio | ob_ss_external_table_disk_cache_hit_ratio | % |
SQL収集
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245054, 245055) and (con_id > 1000 or con_id = 1)