ThingWorx 高可用性 > ThingWorx Foundation 高可用性 > 安裝 ThingWorx HA 之前的先決條件
安裝 ThingWorx HA 之前的先決條件
對於 ThingWorx HA 系統,安裝 ThingWorx 之前需要進行其他組態。
ThingWorx HA 的平台設定
ThingWorx HA 的檔案儲存
ThingWorx HA 的平台設定
如所有 ThingWorx 部署一樣,ThingWorx HA 部署需要 platform-settings.json 檔案存在於 ThingworxPlatform 儲存位置中。HA 部署中的所有 ThingWorx 伺服器必須都能夠存取同一個 platform-settings.json 檔案或其相同副本。有關管理此需求的建議將在下方的 ThingWorx HA 檔案儲存中具體介紹。
有關 platform-settings.json 的詳細資訊可在將部署的 安裝 ThingWorx 指南的特定版本中以及 platform-settings.json 檔案中找到。
對於 ThingWorx HA 系統,最相關的設定如下所示。這些以及其他 HA 設定會在以上提及的文件中介紹,但對於 ThingWorx HA 系統可能需要修改下列設定。
基本設定
EnableHA - platform-settings.json 中是否套用了 HA 設定。值為 true 時,已套用 HA 設定。
密碼 - 上述資料庫結構描述使用者的密碼。
HA 設定
CoordinatorHosts - ZooKeeper 伺服器以逗號分隔的清單,其中 ZooKeeper 伺服器構成 ThingWorx HA 組態中所用服務。字串模式為 <IP 位址>:<埠號>。(例如,"127.0.0.1:2181, 127.0.0.2:2181")
LoadBalancerBase64EncodedCredentials - Base64 編碼字串,格式為 <使用者>:<具唯一性密碼>。當負載平衡器連線到 ThingWorx 實例以檢查前置節點狀況時,它應該提供相同的編碼認證。
持續性提供者封裝組態 - 針對有效 HA 組態,ThingWorx 及其資料庫不應在相同伺服器上運作。無論資料庫是 PostgreSQL 還是 MS SQL Server,這些設定的預設值都可能需要變更。
jdbcUrl - ThingWorx 使用 jdbc url 連線至資料庫。
username - 擁有或具有 ThingWorx 結構描述權限的資料庫結構描述使用者。
password - 上述資料庫結構描述使用者的密碼。