Clustered session support

 

A clustered environment supports load balancing, where the workload is distributed among the appservers that compose the cluster. In a cluster environment, the same Webapp must exist on each of the servers that can access the session. One can accomplish this setup by installing an application onto a cluster definition. Each of the servers in the group can then access the Webapp

In a clustered environment, the Session Management facility requires an affinity mechanism so that all requests for a particular session are directed to the same appserver instance in the cluster. This requirement conforms to the Servlet 2.3 specification in that multiple requests for a session cannot coexist in multiple application servers. One such solution provided by IBM WAS is session affinity in a cluster; this solution is available as part of the WAS plug-ins for Web servers. It also provides for better performance because the sessions are cached in memory. In clustered environments other than WAS clusters, use an affinity mechanism (for example, IBM WebSphere Edge Server affinity).

If one of the servers in the cluster fails, it is possible for the request to reroute to another server in the cluster. If distributed sessions support is enabled, the new server can access session data from the database or another WAS instance. One can retrieve the session data only if a new server has access to an external location from which it can retrieve the session.


Managing HTTP sessions
Managing HTTP sessions: Links:

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.