在使用从主数据中心导出的 OVA 文件在辅助数据中心创建节点后,请配置这些节点以进行 OpenSearch 复制。
必备条件
在配置辅助数据中心内的节点之前,手动将 cluster.initial\_master\_nodes 值设置为辅助集群的 FQDN。请参阅为 Omnissa Access 的辅助数据中心内的节点配置 OpenSearch。
过程
对于辅助数据中心的每个节点,请执行以下步骤。
-
将主数据中心集群的负载均衡器 FQDN 添加到辅助数据中心集群内的每个节点的 /usr/local/horizon/conf/runtime-config.properties 文件中。
- 访问 /usr/local/horizon/conf/runtime-config.properties 文件以进行编辑。
vi /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` -
在所有节点上重新启动 Omnissa 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 }
此页面对您有帮助吗?