This section contains a high-level description of how to create server groups
and clones.
- Note:
- If you are using your server for replication purposes only, it is recommended
that you do not add your clones into the DB2 Everyplace Server Group.
The synchronization requests might be sent to the replication server, which
will not reply to the client.
This task is part of the main task of Configuring a multiple server
environment. After you complete these steps, return to Configuring a multiple server environment.
Prerequisites
Before you create application server clones, you must complete some setup
tasks as described in Setting up to create application server clones.
Procedure
To create application server clones:
- Stop the application server that you want to clone.
- Open the WebSphere Administrative Console, and go to WebSphere
Administrative Domain --> Node --> domain name -->
Application Servers --> IBM DB2 Everyplace Application
Server.
- Right-click the application server and select stop.
- Create a new server group by right-clicking on the application server and
select Create Server Group. In the Create Server
Group window, type a name for the new server group (for example,
DB2 Everyplace Server Group). Click OK.
A server group is created, and the original application server is now a
clone in the server group.
- Copy the expanded EAR files to the other application servers when prompted
by the Administrative Console.
- Right-click each node, and select Regenerate Plugin Config so
that the system will recognize each clone.
- Select one node, and copy the
$WAS_HOME/config/plugin-cfg.xml file to your front-end IBM
HTTP Server.
- Specify a different server port and IP for each clone.
- Select Nodes --> nodename--> Application
server clone name.
- In the right plane, go to Services and select Web
Container. Click Edit.
- Click the Transport tab on the properties window and note the
port number.
- Go to System Properties in the right pane, and enter or modify
the following name value pair: DSYGdflt.Server.Port,
transport_port_number for the application server clone. Also, enter or
modify the server IP to specify a valid static IP address:
DSYGdflt.Server.IP, ip_address.
- You must also define a unique value for each of the servers in the same
server group for the following properties:
-
- The same port numbers found in the previous step must be added to the list
of virtual hosts.
- Select WebSphere Administrative Domain -> Virtual
Hosts
- Select a virtual host (in general, this is default_host). In the
right pane, click add and type the port number that you obtained
previously. The host alias and the corresponding port may be entered
one at a time as "*.<port_number>".
- Click Apply.
- Right-click each node, and select Regenerate Plugin Config so
that the system will recognize each clone.
- Select one node, and copy the $WAS_HOME/config/plugin-cfg.xml file
to your front-end IBM HTTP Server.
After you complete these tasks, you can start the multiple server
environment.
To start the multiple server environment, right-click on the new server
group and select start. All clones that belong to that
server group should start, and the front-end HTTP server with the servlet
redirector will begin to receive all the requests.
Related concepts
Related tasks