在设置辅助数据中心之前,请配置主数据中心以在集群之间进行 OpenSearch 复制。
OpenSearch 是嵌入在 Omnissa Access 虚拟设备中的搜索和分析引擎,用于审核、报告和目录同步日志。
必备条件
您已在主数据中心设置一个 Omnissa Access 集群。
过程
请在主数据中心集群的所有节点中进行这些更改。
-
将辅助数据中心集群的负载均衡器 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 -
在所有节点上重新启动 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 }
后续步骤
要验证主数据中心内的集群是否设置正确,请查看控制台“监控”>“弹性”页面中的仪表板。
此页面对您有帮助吗?