Creating application server clones

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:

  1. Stop the application server that you want to clone.
    1. Open the WebSphere Administrative Console, and go to WebSphere Administrative Domain --> Node --> domain name --> Application Servers --> IBM DB2 Everyplace Application Server.
    2. Right-click the application server and select stop.
  2. 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.

  3. Copy the expanded EAR files to the other application servers when prompted by the Administrative Console.
  4. Right-click each node, and select Regenerate Plugin Config so that the system will recognize each clone.
  5. Select one node, and copy the $WAS_HOME/config/plugin-cfg.xml file to your front-end IBM HTTP Server.
  6. Specify a different server port and IP for each clone.
    1. Select Nodes --> nodename--> Application server clone name.
    2. In the right plane, go to Services and select Web Container. Click Edit.
    3. Click the Transport tab on the properties window and note the port number.
    4. 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.
  7. You must also define a unique value for each of the servers in the same server group for the following properties:
  8. The same port numbers found in the previous step must be added to the list of virtual hosts.
    1. Select WebSphere Administrative Domain -> Virtual Hosts
    2. 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>".
    3. Click Apply.
  9. Right-click each node, and select Regenerate Plugin Config so that the system will recognize each clone.
  10. 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