在设置辅助数据中心之前,请配置主数据中心以在群集之间进行 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
    }

后续步骤

查看“系统诊断”仪表板以验证是否正确设置了主数据中心的群集。