このセクションでは、OceanBaseテナントの監視指標であるフリーズ済みMEMStoreについて説明します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントのフリーズ済みMEMStoreを照会できます。
指標の概要
統計範囲内のテナントのフリーズ済みMEMStoreの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| frozen_memstore_count | ob_tenant_partition_frozen_memstore_count | - |
計算式
max(ob_partition_frozen_memstore_count{@LABELS}) by (@GBLABELS)
取得SQL
OceanBase V4.0未満のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant.tenant_id, tenant.tenant_name, case when max(stat.cnt) is null then 0 else max(stat.cnt) end as cnt from __all_tenant tenant left join (select tenant_id, count(*) cnt, table_id, partition_id from __all_virtual_tenant_memstore_allocator_info where mt_is_frozen=1 group by tenant_id,table_id,partition_id) stat on tenant.tenant_id=stat.tenant_id group by tenant.tenant_id, tenant.tenant_name