在使用从主数据中心导出的 OVA 文件在辅助数据中心创建节点后,请配置这些节点以进行 OpenSearch 复制。
对于辅助数据中心的每个节点,请执行以下步骤。
过程
- 将主数据中心集群的负载均衡器 FQDN 添加到辅助数据中心集群内的每个节点的 /usr/local/horizon/conf/runtime-config.properties 文件中。
- 访问 /usr/local/horizon/conf/runtime-config.properties 文件以进行编辑。
vi /usr/local/horizon/conf/runtime-config.properties
- 更改此文件中的以下行:
analytics.replication.peers=https://LB_FQDN_of_second_cluster
analytics.replication.peers=https://LB_FQDN_of_primary_cluster
- 访问 /usr/local/horizon/conf/runtime-config.properties 文件以进行编辑。
- 在所有节点上重新启动 Workspace ONE Access 服务。
service horizon-workspace restart
- 在集群中的所有节点上运行以下命令,以验证是否正确设置了集群。
curl 'http://localhost:9200/_cluster/health?pretty'
该命令(用于验证 OpenSearch 运行状况)应返回类似于以下的结果。
{ "cluster_name" : "horizon", "status" : "green", "timed_out" : false, "number_of_nodes" : 3, "number_of_data_nodes" : 3, "discovered_master" : true, "active_primary_shards" : 90, "active_shards" : 180, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 }