Workload management selection policies and affinities

The workload management (WLM) selection or load balancing policy specifies how client requests are distributed to the application servers in a cluster. The WebSphere Application Server WLM component can use either of these policies to distribute client requests to clustered application servers:

When a cluster member fails, the WLM plug-in code waits for a specified interval before it attempts to send another request to that cluster member. The default retry interval is one minute. You can change the selection policy and the RetryInterval tag in the plugin-cfg.xml file for your cluster.

The plugin-cfg.xml file contains several optional elements and attributes that are not generated by the GenPluginCfg script or the administrative console. To make changes to these attributes, you can manually edit the plugin-cfg.xml file. See plugin-cfg.xml file for a complete description of the XML elements and attributes of the plugin-cfg.xml file. Go to Help documentation

Prefer local

Prefer local is set using the Network Deployment adminisration console and is an attribite of the cluster. The prefer local semantics apply for both round robin weighted and random load balancing methods. The semantics assure that clustered EJB application server members on the same host as the client (servlets, JSPs), will be favored over remote cluster members.

For standalone Java clients, the EJB application server selection policy defines how Java clients requets are load balanced amongst clustered EJB application servers. The load balancing policy is round robin with weighting. The semantics are the same as the round robin with weighting as described for Web clients above. The weights are defined on a cluster member level and can be modified using the Network Deployment Administration console. Also the prefer local routing option may be set on a cluster basis using the Network deployment console. The weights are propogated out to the client ORB workload management plug-in upon the first cleint request. From then on the requests will be load balanced following the rules for round robin weighted. The only exceptions to this pattern are if the chosen cluster member cannot process the request or the client request is associated with transaction affinity.

Affinities

WLM relies on the selection policy to distribute the first request of each session. Server affinity can affect how subsequent requests are routed. These topics describe types of affinity:

Transaction affinity
In transaction affinity, the load distribution facility recognizes the existence of a transaction and attempts to direct all requests within the scope of that transaction to the same server.

Server affinity
In server affinity, the load distribution facility recognizes that although multiple servers might be acceptable for a given client request, a particular server is best suited to process that request.