您將 Sun Cluster HA for Sun Java System Web Server 作為故障轉移資料服務執行還是作為可縮放資料服務執行? 請參閱Sun Cluster 概念指南 (適用於 Solaris 作業系統)文件,以取得有關兩種服務類型的資訊。 對於可縮放服務,請考量以下問題。
哪些節點將寄存可縮放服務? 在大多數情況下,您需要跨所有節點進行縮放。 但是,您可以限制寄存服務的節點組。
您的 Sun Java System Web Server 實例需要滯留 IP 嗎? 滯留 IP 是一項資源屬性設定 (Load_balancing_policy),該設定將用戶端狀態儲存在記憶體中,以便來自相同節點的傳回通訊始終傳送至相同的叢集節點。 您可以從多個負載平衡策略中選擇,如Sun Cluster Data Services Planning and Administration Guide for Solaris OS之「Standard Properties」中有關資源屬性的表格所述。
如果線上可縮放服務的 Load_balancing_policy 設定為 LB_STICKY 或 LB_STICKY_WILD,則變更該服務的 Load_balancing_weights 時應小心。 服務上線運作時變更這些屬性會導致現有用戶端關係重設,因此其他節點可能會為隨後的用戶端要求提供服務,即使其他叢集成員先前已為該用戶端提供服務。
同樣,當在叢集上啟動新的服務實例時,現有用戶端關係也可能會重設。
Web 伺服器根將位於何處?
Web 伺服器可為其他高度可用的應用程式的資料提供服務嗎? 如果是,則資源之間可能存在資源相依性,以便一個資源在另一個資源之前啟動或停止。 請參閱Sun Cluster Data Services Planning and Administration Guide for Solaris OS中的「Standard Properties」,以取得設定這些附屬的資源屬性 Resource_dependencies 的描述。
決定要用於網路位址和應用程式資源以及它們之間附屬的資源群組。 請參閱Sun Cluster Data Services Planning and Administration Guide for Solaris OS中的「Standard Properties」,以取得設定這些附屬的資源群組屬性 RG_dependencies 的描述。
為用戶端提供邏輯主機名稱 (對於故障轉移服務) 或共用位址 (對於可縮放服務) 以用於存取資料服務。
由於您可以將 Sun Java System Web Server 配置為連結至 INADDR_ANY,因此如果計劃在同一個節點上執行 Sun Java System Web Server 資料服務的多個實例或多個資料服務,則每個實例必須連結至唯一的網路位址和埠號碼。
決定 Confdir_list 和 Port_list 屬性的項目。 對於故障轉移服務,這兩個屬性均只能包含一個項目。 對於可縮放服務,它們可以包含多個項目。 但是,項目數必須相同,並且必須按指定順序相互對映。 請參閱如何註冊與配置 Sun Cluster HA for Sun Java System Web Server,以取得詳細資訊。
決定您是否要使用 Monitor_Uri_List 延伸屬性。 該延伸屬性可讓您監視隨機 URI 清單。 如果您要配置可經由 Web 存取的其他資料服務,則監視隨機 URI 十分有用。 Sun Java System Web Server 的安全實例不支援使用 Monitor_Uri_List 延伸屬性。 您必須安裝 Sun Cluster HA for Sun Java System Web Server 3.1 10/03 發行版本,才能使用該屬性。 如果您要從舊版本升級 Sun Cluster HA for Sun Java System Web Server,則必須執行資源類型升級程序,才能使用新屬性。 如需相關說明,請參閱Sun Cluster Data Services Planning and Administration Guide for Solaris OS中的「Upgrading a Resource Type」。 請參閱配置 Sun Cluster HA for Sun Java System Web Server 延伸屬性,以取得有關選擇性的延伸屬性設定以及 Monitor_Uri_List 使用範例的詳細資訊。
決定在本機檔案系統上放置日誌、錯誤檔案和 PID 檔案的位置。
決定在叢集檔案系統上放置內容的位置。