セカンダリ データセンターをセットアップする前に、クラスタ全体で Elasticsearch を複製するためにプライマリ データセンターを構成します。

Elasticsearch は、VMware Identity Manager 仮想アプライアンスに組み込まれた検索および分析エンジンで、監査、レポート、およびディレクトリ同期ログに使用されます。

プライマリ データセンター クラスタのすべてのノードでこれらの変更を行います。

前提条件

プライマリ データセンターに VMware Identity Managerクラスタがセットアップされています。

手順

  1. セカンダリ データセンター クラスタのロード バランサの FQDN を、プライマリ データセンター クラスタ内の各ノードの /usr/local/horizon/conf/runtime-config.properties ファイルに追加します。
    1. /usr/local/horizon/conf/runtime-config.properties ファイルを編集します。
      vi /usr/local/horizon/conf/runtime-config.properties
    2. 次の行をファイルに追加します。
      analytics.replication.peers=https://LB_FQDN_of_second_cluster
  2. すべてのノードで VMware Identity Manager サービスを再起動します。
    service horizon-workspace restart
  3. クラスタ内のすべてのノードに対して次のコマンドを実行して、クラスタが正しく設定されていることを確認します。

    curl 'http://localhost:9200/_cluster/health?pretty'

    Elasticsearch の健全性を検証するコマンドは、次のような結果を返します。

    {
      "cluster_name" : "horizon",
      "status" : "green",
      "timed_out" : false,
      "number_of_nodes" : 3,
      "number_of_data_nodes" : 3,
      "active_primary_shards" : 20,
      "active_shards" : 40,
      "relocating_shards" : 0,
      "initializing_shards" : 0,
      "unassigned_shards" : 0,
      "delayed_unassigned_shards" : 0,
      "number_of_pending_tasks" : 0,
      "number_of_in_flight_fetch" : 0
    }

次のタスク

システム診断ダッシュボードを表示して、プライマリ データセンターのクラスタが正しく設定されていることを確認します。