Defina e configure seus servidores principal e de backup para um ambiente básico de alta disponibilidade.
| Abreviação | Termo |
|---|---|
| URI | Identificador Uniforme de Recursos |
| JTS | Jazz Team Server v4 |
| CCM | Aplicativo Change and Configuration Management v4 |
| QM | Aplicativo Quality Management v4 |
| RM | Aplicativo Requirements Management v4 |
| CLM | Collaborative Lifecycle Management (JTS, CCM, QM, RM) |
| LPA | Lifecycle Project Administration |
O aplicativo jts.war é geralmente instalado com um único servidor de aplicativos como seu destino. Com a introdução do servidor da Web, a configuração do contêiner de aplicativo deve ser modificada para permitir roteamento por meio do servidor da 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
Toda vez que um WebSphere Application Server é configurado para rotear solicitações por meio de um servidor da Web para um servidor de aplicativos, o arquivo plugin.xml do servidor da Web é atualizado com as informações de conexão para o servidor de aplicativos. Neste ponto, você configurou parcialmente o arquivo plugin-cfg.xml. Substitua e, em seguida, edite a seção a seguir do arquivo plugin-cfg.xml no servidor da Web para concluir a configuração. Esse arquivo plugin-cfg.xml está localizado na pasta plugin\config\webserver1 do servidor da Web, em que webserver1 é o nome designado ao servidor da Web na seção anterior, "Instalando e Configurando o IBM HTTP Server e Plug-ins de Servidores da Web".
Grupos de URI
Dependendo da configuração do ambiente de alta disponibilidade e de se você deseja ter uma única instância do WebSphere Application Server para cada aplicativo ou um servidor de aplicativos para todos os aplicativos, você deve planejar conforme necessário. Os grupos de URI são um agrupamento lógico dos URIs oferecidos por um cluster. Por exemplo, se uma única instância do WebSphere Application Server por aplicativo for usada, declare um cluster para cada aplicativo. Um grupo de URI é aplicado a um único cluster. Um agrupamento de URI pode parecer com este exemplo:
<!-- 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>
Cluster de servidores
Se você configurar uma instância do WebSphere Application Server por aplicativo, um cluster de servidores deve ser configurado para incluir todos os servidores que fornecem esse URI de aplicativo. Um cluster de servidores para os aplicativos CLM pode parecer com este exemplo:
<!-- 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 -->
Rota
O elemento route é onde o grupo de URI e o cluster de servidores são ligados. O elemento rout indica ao plug-in quais URIs são fornecidas por qual cluster. Usando o exemplo anterior, os elementos route de exemplo irão ligar as URIs de aplicativos a seus respectivos clusters conforme mostrado:
<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"/>
As propriedades de servidor customizadas não são sincronizadas automaticamente entre os servidores principal e de backup. Para assegurar que os servidores de backup tenham atributos de configuração consistentes, todas as configurações customizadas devem ser propagadas para os servidores de backup antes de ficarem ativos. Fazer backup periódico do servidor principal e restaurar esses arquivos no servidor de backup são suficientes para manter as propriedades de servidor customizáveis em sincronização.
Para atingir alta disponibilidade, você deve saber quando o servidor principal está inativo. Esse conhecimento é especialmente importante para essa solução básica de alta disponibilidade, que não suporta failover automático do servidor principal para o servidor de backup.
O processo de detecção de um servidor com falha é uma tarefa crítica e sensível ao tempo. Vários fatores podem indicar que um servidor falhou, como problemas de rede, problemas de configuração, sobrecarregamento de aplicativo ou erro do usuário. Qualquer que seja a solução que escolha para detectar falhas do servidor, você deve assegurar que o alerta seja o mais rápido possível.