Balancing workloads with clusters
To monitor appservers and manage the workloads of servers, use server clusters and cluster members provided by the Network Deployment product.
To assist you in understanding how to configure and use clusters for workload management, below is a scenario. In this scenario, client requests are distributed among the cluster members on a single machine. (A client refers to any servlet, Java application, or other program or component that connects the end user and the appserver that is being accessed.) In more complex workload management scenarios, you can distribute cluster members to remote machines.
- Decide which appserver you want to cluster.
- Decide whether you want to configure replication domains and entries. Replication enables the sharing of data among processes and the backing up of failed processes.
- Deploy the application onto the appserver.
- After configuring the appserver and the application components exactly as you want them to be, create a cluster. The original server instance becomes a cluster member that is administered through the cluster.
- You can create one or more cluster members of the cluster.
- Regenerate the plug-in configuration. After changing configurations to plug-ins, transports or virtual hosts, regenerate your Web server plug-in for the changes to take effect.
- Start all of the appservers by starting the cluster. Workload management automatically begins when you start the cluster members of the appserver.
- Once you have the cluster running, you can perform the following tasks:
- Stop the cluster.
- Upgrade applications on clusters.
- Detect and handle problems with server clusters and their workloads.
- Tune the behavior of the workload management run time.
If your application is experiencing problems with time-outs or your network experiences extreme latency, change the timeout interval for the com.ibm.CORBA.RequestTimeout property. Or, if the workload management state of the client is refreshing too soon or too late, change the interval for the com.ibm.websphere.wlm.unusable.interval property.
What to do next
Define a bootstrap host for stand-alone Java clients. Stand-alone Java clients are clients that are located on a different machine from the appserver and have no administrative server. Add the following line to the JVM arguments for the client:
-Dcom.ibm.CORBA.BootstrapHost=machine_namewhere machine_name is the name of the machine on which the administrative server is running.
Workload management (WLM)
Clusters and workload management
Replication
Techniques for managing state
Regenerating Web server plug-in configurations
Workload management run-time exceptions
Clustering and workload management: Resources for learning