當您使用從主要資料中心匯出的 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 }
此頁面對您有幫助嗎?