0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Region・IDC・Zone・クラスタの論理関係

0
Posted at

OceanBase を学び始めると、Region、IDC、Zone、Cluster という用語が出てきます。

どれも「配置場所」に関係する言葉ですが、物理的な場所とOceanBase 内部の論理構造を分けて考えると理解しやすくなります。

結論

OceanBase では、Cluster が複数の Zone で構成されます。各 Zone には、所在地を表す Region と IDC の属性を設定します。

物理配置としては、次のように覚えると分かりやすいです。

Region(地域)
└─ IDC(物理データセンター)
   └─ Zone(OceanBase の論理障害ドメイン)
      └─ OBServer(実際の DB サーバーノード)

複数の Zone をまとめたものが Cluster(クラスタ)

構成イメージ

OceanBase Cluster
├─ Region: TOKYO
│  ├─ IDC: tokyo-a
│  │  └─ Zone: z1
│  │     ├─ OBServer 1
│  │     └─ OBServer 2
│  └─ IDC: tokyo-b
│     └─ Zone: z2
│        ├─ OBServer 3
│        └─ OBServer 4
└─ Region: OSAKA
   └─ IDC: osaka-a
      └─ Zone: z3
         ├─ OBServer 5
         └─ OBServer 6

各用語の意味

用語 意味 OceanBase における役割
Cluster クラスタ OceanBase のサービス全体。複数の Zone と OBServer の集合。
Region 地域 大きな地理的範囲。通常は TOKYO や OSAKA のような都市名を設定する。
IDC データセンター/機房 Region 内にある物理拠点。例えば「東京 A データセンター」。
Zone 可用性ゾーン/論理障害ドメイン OceanBase がレプリカ配置・障害分離・スケジューリングに使う論理単位。
OBServer DB サーバーノード データを保存し、SQL を処理する実行ノード。

重要:Zone は「論理的な単位」

ここが最も重要です。

Region → IDC → Zone は物理配置を理解するための便利な見方ですが、OceanBase 内部では Zone が Cluster に属する論理単位です。

つまり、OceanBase は Zone に対して次のように所在地情報を設定します。

ALTER SYSTEM MODIFY ZONE "z1" SET REGION = "TOKYO";
ALTER SYSTEM MODIFY ZONE "z1" SET IDC = "tokyo-a";

厳密には「IDC が Zone を管理する」のではなく、Zone がどの Region・IDC に配置されているかを OceanBase に知らせる設計です。

なぜ Region と IDC を設定するのか

この位置情報は、主に以下のために使われます。

  • レプリカの配置と障害分離
  • ODP(OceanBase Database Proxy)の LDC ルーティング
  • 同一 IDC 内のレプリカを優先する弱整合読み取り
  • IDC 間・Region 間のネットワーク遅延の抑制
  • 複数 IDC/複数 Region の災害対策

例えば、ODP とアプリケーションが tokyo-a にある場合、同じ IDC の Zone にあるレプリカを優先できれば、遠隔 IDC や別 Region への通信を減らせます。

覚え方

地域(Region)→ 機房(IDC)→ 論理区画(Zone)→ サーバー(OBServer)
複数 Zone をまとめたものが Cluster

ただし試験や設計書では、次の表現も押さえておくと安全です。

Cluster は複数の Region を持ち、Region は複数の Zone を持つ。Zone には IDC 属性がある。

これは、Zone が OceanBase 内の論理オブジェクトであることを強調した表現です。

まとめ

  • Region は地域、IDC は物理データセンター。
  • Zone は OceanBase における論理障害ドメイン。
  • OBServer は Zone 内で動作するデータベースノード。
  • Cluster は複数の Zone を含む OceanBase 全体。
  • Region/IDC 情報は、ルーティング・性能・高可用性に重要。

参考

※ 内容確認日:2026-08-22

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?