このガイドではクラスタ化されたソリューションである Confluence データセンターの最初ののインストール(既存データなし)について説明します。 

If you have an existing Confluence instance, see Moving to Confluence Data Center.

1.クラスタ化の要件および専門用語

Confluence をクラスタで実行するには以下が必須条件になります:

If you need a Data Center evaluation license please contact us.  

このガイドでは以下の用語について説明します:

インストールが終了すると、各ノードにインストールディレクトリ、ローカルのホームディレクトリ、共有ホームディレクトリが 1 存在することになります(2 つのノードクラスタに合計で5 個のディレクトリ) 

2. ノード 1 に Confluence をインストール

  1. Install Confluence on node 1
    See Installing Confluence on Windows from Zip File or Installing Confluence on Linux from Archive File for more information. 
  2. ノード 1 で Confluence を開始する (セットアップウィザードで 1 目のノードの設定まで行えます。 以下の内容を入力するよう指示されます)。以下の内容を入力するよう指示されます:

3. 単体ノードのロードテスト

Confluence のインストールではたいていクラスタ化は必要ありませんが、増設の複合クラスタの使用を先に進める前に、単体ノードのインストールをユーザー数やロード数でテストを行うこともできます。

4.ノード 2 に Confluence をコピー

2 つ目のノードに Confluence をコピーするには:

  1. ノード 1 で Confluence をシャットダウンする。
  2. ノード2 でアプリケーション サーバーをシャットダウン、または自動的にウェブアプリケーションのロードを停止する。
  3. ノード 1 からノード 2 へインストール ディレクトリをコピーする。
  4. Copy the local home directory from node 1 to node 2
    If the file path of the local home directory is not the same on nodes 1 and 2 you'll need to update the <installation directory>/confluence/WEB-INF/classes/confluence-init.properties file on node 2 to point to the correct location.

ローカルのホームディレクトリをコピーすることで、確実に Confluence 検索インデックス、データベース、クラスタ設定、その他の設定をノード 2 にコピーします。

5. ノード 1 で Confluence を開始、待つ、ノード 2 で Confluence を開始

一度に開始する Confluence サーバーは 1 機までとすることを推奨します。

  1. ノード 1 で Confluence を開始する。
  2. Confluence がノード 1 で使用可能になるまで待つ。
  3. ノード 2 で Confluence を開始する。
  4. Confluence がノード 2 で使用可能になるまで待つ。

6. クラスタ接続性のテスト

The Cluster monitoring console ( > Clustering) includes information about the active cluster.

When the cluster is running properly, this page displays the details of each node, including system usage and uptime. Use the menu to see more information about each node in the cluster.

スクリーンショット:クラスタ監視コンソール


クラスタが正しく作動しているか確認する簡単な方法は:

  1. ノード 1 で新しいドキュメントを作成する。
  2. ノード 2 で直接アクセスして新しいドキュメントが見えているか確認する。
  3. ノード 1 で新しいドキュメントを検索し、表示されるか確認する。
  4. ノード 2 で新しいドキュメントを検索し、表示されるか確認する。

If Confluence detects more than one instance accessing the database but not in a working cluster, it will shut itself down in a cluster panic. This can be fixed by troubleshooting the network connectivity of the cluster.

7. ロードバランサの設定

Install and configure your load balancer. You can use the load balancer of your choice, but it needs to support ‘session affinity’.

ご利用のロードバランサを以下の点で検証します:リクエストを送信する際、Confluence にアクセスしてロードバランサを通過し、既存の Confluence サーバーに正しく送信してページを作成し、このページがロードバランサを使用した他のマシンから閲覧・編集が可能である。

セキュリティ

Ensure that only permitted cluster nodes are allowed to connect to a Confluence Data Center instance's Hazelcast port, which by default is port 5801, through the use of a firewall and/or network segregation.

トラブルシューティング

If you have problems with the above procedure, please see our Cluster Troubleshooting guide.

If you're testing Confluence Data Center by running the cluster on a single machine, please refer to our developer instructions on Starting a Confluence cluster on a single machine.

クラスタのアップグレード

It's important that upgrades follow the procedure for Upgrading Confluence Data Center.