設定和配置基本高可用性環境中的主要與備用伺服器。
| 縮寫 | 項目 |
|---|---|
| URI | 統一資源識別碼 |
| JTS | Jazz Team Server 第 4 版 |
| CCM | 「變更與配置管理」應用程式 |
| QM | 「品質管理」應用程式第 4 版 |
| RM | 「需求管理」應用程式第 4 版 |
| CLM | Collaborative Lifecycle Management(JTS、CCM、QM) |
| LPA | 生命週期專案管理 |
一般而言,jts.war 應用程式在安裝時,是以單一應用程式伺服器為其目標。 引進 Web 伺服器之後,您必須修改應用程式儲存器配置,以便容許透過 Web 伺服器遞送。
com.ibm.team.fulltext.indexLocation=I\:/sharedIndexFolder/workitemindex
com.ibm.team.fulltext.indexLocation=/net/LinuxHost/sharedIndex/workitemindex
com.ibm.team.repository.scheduler.migration.mode.enabled=true
每當將 WebSphere Application Server 配置成透過 Web 伺服器,將要求遞送至應用程式伺服器時,就會以這部應用程式伺服器的連線資訊來更新Web 伺服器的 plugin.xml 檔。 這時,您已局部配置 plugin-cfg.xml 檔。 請在 Web 伺服器的 plugin-cfg.xml 檔中,取代並編輯下列區段,以完成配置。 這個 plugin-cfg.xml 檔位於 Web 伺服器的 plugin\config\webserver1 資料夾(其中 webserver1 是您在上一節「安裝及配置 IBM HTTP Server 和 Web 伺服器外掛程式」中指派給 Web 伺服器的名稱)。
URI 群組
依照高可用性環境設定,以及您是要每個應用程式各有單一 WebSphere Application Server 實例,或所有應用程式共有一部應用程式伺服器,您必須相應地進行規劃。URI 群組是叢集提供之 URI 的邏輯分組。 比方說,如果每個應用程式各使用單一 WebSphere Application Server 實例,請為每個應用程式宣告一個叢集。 一個 URI 群組適用於一個單一叢集。 URI 分組可能看起來類似於這個範例:
<!-- JTS URI Group -->
<UriGroup Name="default_host_JTS_basicHA_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/admin/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jts/*"/>
</UriGroup>
<!-- CCM URI Group -->
<UriGroup Name="default_host_CCM_basicHA_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ccm/*"/>
</UriGroup>
<!-- QM URI Group -->
<UriGroup Name="default_host_QM_basicHA_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/qm/*"/>
</UriGroup>
<!-- RM URI Group -->
<UriGroup Name="default_host_RM_basicHA_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/rm/*"/>
</UriGroup>
伺服器叢集
如果是每個應用程式各設定一部 WebSphere Application Server 實例,就必須設定一部伺服器叢集來包括所有提供一個應用程式 URI 的伺服器。CLM 應用程式的伺服器叢集可能看起來類似於這個範例:
<!-- JTS Server Cluster -->
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_jts_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
<Server LoadBalanceWeight="0" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="jts1Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="jts1.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="jts1.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
<Server LoadBalanceWeight="1" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="jts2Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="jts2.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="jts2.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>>
</Server>
</ServerCluster>
<!-- End JTS Server Cluster -->
<!-- CCM Server Cluster -->
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_ccm_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
<Server LoadBalanceWeight="0" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="ccm1Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="ccm5.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="ccm5.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
<Server LoadBalanceWeight="1" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="ccm2Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="ccm6.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="ccm6.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
</ServerCluster>
<!-- End CCM Cluster -->
<!-- QM Server Cluster -->
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_qm_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
<Server LoadBalanceWeight="0" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="qm1Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="qm7.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="qm7.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
<Server LoadBalanceWeight="1" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="qm2Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="qm8.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="qm8.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
</ServerCluster>
<!-- End QM Cluster -->
<!-- RM Server Cluster -->
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_rm_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
<Server LoadBalanceWeight="0" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="rm1Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="rm3.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="rm3.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
<Server LoadBalanceWeight="1" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="rm2Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="rm4.example.com" Port="9080" Protocol="http"/>
<Transport Hostname="rm4.example.com" Port="9443" Protocol="https">
<Property Name="keyring" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.kdb"/>
<Property Name="stashfile" Value="/root/IBM/HTTPServer/Plugins/config/webserver1/plugin-key.sth"/>
</Transport>
</Server>
</ServerCluster>
<!-- End RM Cluster -->
路徑
route 元素是 URI 群組與伺服器叢集連結起來之處。 route 元素告訴外掛程式哪個叢集提供哪些 URI。 當使用前述範例時,範例 route 元素會將應用程式 URI 連結至它們各自的叢集,如下所示:
<Route ServerCluster="server1_jts_Cluster" UriGroup="default_host_JTS_basicHA_Cluster_URIs" VirtualHostGroup="default_host"/>
<Route ServerCluster="server1_ccm_Cluster" UriGroup="default_host_CCM_basicHA_Cluster_URIs" VirtualHostGroup="default_host"/>
<Route ServerCluster="server1_qm_Cluster" UriGroup="default_host_QM_basicHA_Cluster_URIs" VirtualHostGroup="default_host"/>
<Route ServerCluster="server1_rm_Cluster" UriGroup="default_host_RM_basicHA_Cluster_URIs" VirtualHostGroup="default_host"/>
在主要及備用伺服器之間,自訂的伺服器內容並不會自動同步化。 為了確定備用伺服器有一致的配置屬性,所有自訂設定值在變成作用中之前,都必須先延伸到備用伺服器。 定期從主要伺服器進行備份,以及將這些檔案還原到備用伺服器,就足以讓可自訂的伺服器內容保持同步。
為了達到高可用性,您必須知道主要伺服器何時停機。 對於這個基本高可用性解決方案來說,知道這一點,尤其重要,這個解決方案不支援自動進行從主要伺服器到備用伺服器的失效接手。
偵測失效伺服器程序是一項重要且具有時效性的作業。 有某些因素可指出伺服器已失效,例如:網路問題、配置問題、應用程式超載,或是使用者錯誤。不論您選擇哪一種解決方案來偵測伺服器的失效,都必須確定警示能夠儘快發出。