Establezca y configure los servidores primarios y de copia de seguridad para un entorno básico de alta disponibilidad.
| Abreviatura | Término |
|---|---|
| URI | Identificador universal de recursos |
| JTS | Jazz Team Server v4 |
| CCM | Aplicación Gestión de cambios y configuración v4 |
| QM | Aplicación Gestión de calidad v4 |
| RM | Aplicación Gestión de requisitos v4 |
| CLM | Collaborative Lifecycle Management (JTS, CCM, QM, RM) |
| LPA | Administración de proyecto de ciclo de vida |
La aplicación jts.war normalmente se instala con un único servidor de aplicaciones como destino. Con la introducción del servidor web, la configuración del contenedor de aplicaciones se tiene que modificar para permitir el direccionamiento mediante el servidor 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
Cada vez que se configura WebSphere Application Server para direccionar solicitudes a través de un servidor web a un servidor de aplicaciones, el archivo plugin.xml del servidor web se actualiza con la información de conexión para dicho servidor de aplicaciones. En este punto, ha configurado parcialmente el archivo plugin-cfg.xml . Sustituya y a continuación edite la sección siguiente del archivo plugin-cfg.xml en el servidor web para completar la configuración. Este archivo plugin-cfg.xml está ubicado en la carpeta plugin\config\webserver1 del servidor web, donde webserver1 es el nombre que ha asignado al servidor web en la sección anterior, "Instalación y configuración de IBM HTTP Server y los plug-in del servidor web".
Grupos de URI
Dependiendo de la configuración de entorno de alta disponibilidad y de si pretende tener una única instancia de WebSphere Application Server para cada aplicación o un servidor de aplicaciones para todas las aplicaciones, debe planificarlo como corresponda. Los URI de grupos son una agrupación lógica de URI que sirve un clúster. Por ejemplo, si se utiliza una única instancia de WebSphere Application Server por aplicación, declare un clúster para cada aplicación. Se aplica un grupo URI a un único clúster. Una agrupación URI se puede parecer a este ejemplo:
<!-- 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>
Clúster de servidores
Si configura una instancia de WebSphere Application Server por aplicación, se debe configurar un clúster de servidores para incluir todos los servidores que sirven a ese URI de aplicación. Un clúster de servidores para la aplicación CLM se tiene que parecer al de este ejemplo:
<!-- 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 -->
Ruta
El elemento de ruta está donde se enlazan el grupo URI y el clúster de servidores. El elemento ruta le dice al plug-in que clúster sirve a qué URI. Utilizando el ejemplo anterior, los elementos de ruta del ejemplo enlazarán los URI de aplicación a sus clústeres respectivos como se muestra en:
<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"/>
Las propiedades de servidor personalizadas no se sincronizan automáticamente entre los servidores primario y de seguridad. Para garantizar que los servidores de seguridad tienen atributos de configuración consistentes, todos los valores personalizados deben propagarse a los servidores de seguridad antes de convertirse en activos. Periódicamente, la copia de seguridad desde el servidor primario y la restauración de esos archivos al servidor de seguridad son suficientes para mantener las propiedades de servidor personalizables en sincronización.
Con el fin de lograr una alta disponibilidad, necesita saber cuándo está caído el servidor primario. Este conocimiento es especialmente importante para esta solución de alta disponibilidad básica, que no permite un error automático del servidor primario al servidor de seguridad.
El proceso de detectar un servidor caído es una tarea crítica y que lleva su tiempo. Varios factores pueden indicar que un servidor ha fallado, como problemas de red, problemas de configuración, sobrecarga de aplicación o error de usuario. Independientemente de la solución que seleccione para detectar los fallos del servidor, debe asegurarse de que la alerta es lo más inmediata posible.