|
|
< Day Day Up > |
|
The Web server tier provides several functions including serving static content, caching, and load balancing for the application server tier. This section describes how to use clustering to achieve continuous availability in the Web tier.
The key element to achieving continuous availability during application upgrades is virtualization of the tiers. Here virtualization means that individual servers are isolated from the requesters of service provided by this tier. The Web server tier is virtualized by allowing access only through a load balancer. For the Web server tier, the WebSphere Application Server Edge component Dispatcher acts as the load balancer as depicted in Figure 3-2. Dispatcher distributes all Web server
Figure 3-2:
Using Dispatcher to cluster the Web server tier
To avoid a single point of failure, the cluster must have at least two Web server nodes, where the
Detects if the HTTP server process fails to respond. If the process fails to respond to a request, the load balancer marks the server down and
Enables a system administrator to dynamically increase or decrease capacity by adding or removing Web server nodes,
Because the load balancer, or Dispatcher in this case, can also be a single point of failure, this component needs to be deployed in pairs. The backup dispatcher can be configured in standby mode, constantly polling the "heartbeat" of the primary dispatcher. If there is no response to a poll, the backup dispatcher takes over. There is also a mutual mode where each dispatcher node load
WebSphere Application Server Network Deployment, Version 5 includes enhanced Edge load balancing components, which are also available in the WebSphere Edge components. In addition to the scenario in Figure 3-2, Dispatcher can be deployed with the Content Based Routing (CBR) and Site Selector
The load balancing algorithms available using these components are:
Random and round
Intelligent rules based algorithms based on
Content based routing based on the content of the incoming
For more information on Edge components shipped with WebSphere refer to www.ibm.com/software/webservers/appserv/doc/v50/ec/infocenter/index.html.
To keep maintenance simple, static content can be deployed with the application enterprise archive files (EARs) and edge side caching (ESI) features in the Web server, in the Edge component Caching Proxy, or an external service provider, such as Akamai. Maintenance is simple because static content is deployed in the same step as the application and the association between static and dynamic content is preserved.
To deploy static content on the Web servers, either:
Keep it simple by copying the new content to the document directory of the Web server replacing the old content.
When both the old content and new content must be available concurrently, and each version is referred to by a different version of the dynamic content in the application server tier, the new content must be deployed with different
Use a script to update the JSPs or XSLT templates during build.
Use property files to map to resources in JSPs or XSLT templates to their appropriate version or location of the static content.
|
|
< Day Day Up > |
|