このセクションでは、OceanBaseテナントのパフォーマンス指標である XAトランザクション数 について説明します。 XAトランザクション数 指標は、OceanBaseテナントのXAトランザクションの総数を集計するために使用されます。この指標は、xa_trans_start_count、xa_read_only_trans_total_count、xa_one_phase_commit_total_count の3つのサブ指標に細分化され、テナントのXAトランザクション数を集計します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントの XAトランザクション数 を照会できます。
xa_trans_start_count
指標の紹介
OceanBaseテナント内で既に開始済みのXAトランザクションの総数(終了したものを含む)。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_trans_start_count | xa_trans_start_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30220",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30220) and (con_id > 1000 or con_id = 1) and class < 1000
xa_read_only_trans_total_count
指標の紹介
OceanBaseテナント内の読み取り専用XAトランザクションの総数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_read_only_trans_total_count | xa_read_only_trans_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30221",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30221) and (con_id > 1000 or con_id = 1) and class < 1000
xa_one_phase_commit_total_count
指標の紹介
OceanBaseテナント内で1フェーズコミットを採用しているXAトランザクションの総数です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_one_phase_commit_total_count | xa_one_phase_commit_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30222",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30222) and (con_id > 1000 or con_id = 1) and class < 1000