This topic provides information about how to set up and administer
highly available Web server clusters for your HTTP Server with the IBM® Web Administration for i5/OS™ interface.
Important: Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended that you install the latest PTFs to upgrade to the latest
level of the HTTP Server for i5/OS. Some of the topics documented here are
not available prior to this update. See
http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm for more information.
All required programs (HTTP Server, WebSphere®, Servlets, Net.Data®,
and Clustering support) must already be installed on all nodes. See http://www.iseries.ibm.com/ha and Highly available Web server cluster on HTTP Server for more information.
Step 2 - Configure the highly available Web server
Configure
IP addresses.
For each iSeries node in the cluster that a highly
available Web server will be running on, configure the IP address that the
Web server will be using. This can be done using the CFGTCP CL
command. You should configure one IP address for each unique Web server. Each
Web server is configured to a dedicated TCP/IP line interface. When using
the Network Dispatcher model or comparable IP director with either HAModel
IPTakeoverWithDispatcher of PurePeer model, the IP Line interface should be
typed *VIRTUALIP. See TCP/IP for more information.
- Start the IBM Web Administration for i5/OS interface.
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
- Select the context you
want to work with from the Server area list.
- Expand Server Properties.
- Click General Server Configuration.
- Click the General Settings tab in the form.
- Click Add under the Server IP addresses and ports to listen on
table.
Note: Directive
HotBackup will be set to
off and
ignored if currently configured for your HTTP Server (powered by Apache).
You
may want to perform the next steps on one iSeries and copy (for example using
FTP or NetServer™)
the HTTP Server (powered by Apache) configuration and instance files to each
iSeries server where the highly available HTTP Server will be running in the
cluster. The files that must be copied are:
- /www/server_name/conf/server_name.conf
- /QSYS.LIB/QUSRSYS.LIB/QATMINSTC.FILE/instance_name.MBR
- Add the IP address the highly available Web server will be running on.
- Click OK.
Configure highly available HTTP Server (powered by Apache)
- Start the IBM Web Administration for i5/OS interface.
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
- Select the context you
want to work with from the Server area list.
- Expand Server Properties.
- Click System Resources.
- Click the Highly Available Server tab in the form.
- Specify one specific server IP address to listen on.
- Click Enable HTTP server to be highly available.
- Select a highly available model.
Note: If you are implementing the primary/backup
with network dispatcher model or the peer model, configure the network dispatcher
according to the existing cluster nodes and the configured Web server.
- Optional: Click Enable highly available CGI program.
- Enter your liveness monitor settings. The LMUrlCheck directive is required. The other
LM directives have defaults.
- Click OK.
- Continue to step 3.
Step 3 - Start highly available HTTP Server (powered by Apache)
Start
your highly available HTTP Server (powered by Apache).
- Start a 5250 session on the iSeries you are going to use the highly available
HTTP Server (powered by Apache).
- Use STRTCPSVR CL command on the appropriate node.
- Continue to step 4.
Note: In the case of the primary/backup model, the first highly available
server to be started will automatically assume the role of the primary. The
second highly available server to be started will automatically assume the
role of the backup.
Step 4 - Manage your highly available HTTP Server (powered
by Apache)
Use the ENDTCPSVR CL command on the appropriate
node or use the IBM Simple Cluster Management interface available through iSeries Navigator to stop
or end your highly available HTTP Server (powered by Apache). In the case
of primary/backup model depending on which server you are ending this may
or may not force a fail over. Ending the primary server with a backup server
running will force a fail over from primary to backup to occur. Ending the
backup will only affect the backup server. Ending the primary server with
no backup will end the primary server. In the case of PurePeer model only
the server you are ending will be affected as any other peer servers will
continue to process client requests. See Set up a cluster using clustering CL commands for HTTP Server and Clusters for
more information.
Note: In the case of primary/backup model, it is possible
to determine which highly available Web server is the primary or backup server.
The QBATCH subsystem will have a job running named QZHBEXPG on
the primary node only. For the client data it is suggested that you set up
a method to automatically publish static files to each Web server. Static
files include HTML and highly available CGI programs.