Previous     Contents     Index     DocHome     Next     
iPlanet Application Server Administrator's Guide



Chapter 11   Administering Multi-Server Applications


This chapter describes how to administer applications on multiple iPlanet Application Server machines using iPlanet Application Server Administration Tool (iASAT)

The following topics are included in this chapter:



About iASAT

iASAT allows you to simultaneously administer applications that are stored on multiple servers. Settings made to application components, such as Enterprise Java Beans (EJBs), distributed across multiple application servers are automatically updated across those servers. In addition, settings made to one iPlanet Application Server machine can be copied and applied to the other iPlanet Application Server machines in a group or the entire enterprise.

Using the administration tool, you can view each iPlanet Application Server machine in the enterprise and make changes to one or more servers at the same time.

To host applications on multiple iPlanet Application Server machines, you can perform either of the following tasks:

  • Distribute applications or parts of applications across two or more servers to specialize request and application processing.

  • Duplicate application components on two or more servers to increase application performance with load balancing.

The more servers you have to work with, the greater your choice of application hosting configurations.

The following table describes three common ways to host an application on multiple iPlanet Application Server machines:


Table 11-1    Ways to Host an Application on Multiple iPlanet Application Server Machines

Hosting configuration

Description

Local  

The application is installed on each iPlanet Application Server machine and uses multiple web servers to traffic requests to each server. The iPlanet Application Server machines do not communicate with each other.  

Partitioned  

Parts of the application are hosted on different iPlanet Application Server machines. Each server knows where the application components of the application are hosted on other servers and forwards requests to the appropriate server.  

Distributed for load balancing  

Parts or all of the application are duplicated on two or more iPlanet Application Server machines. You can then configure the servers to balance application-request loads.  



Hosting Applications Locally on Multiple Servers



Hosting applications locally on multiple servers is the simplest of the three most common server configurations. In this configuration, you deploy the complete application on each iPlanet Application Server machine. If the application is already installed on an iPlanet Application Server machine, you can use the Deployment Tool to deploy the application to other servers.

This configuration requires that you configure each web connector plug-in to forward requests to the appropriate iPlanet Application Server machine.



Alternatively, it is possible to deploy local applications across multiple iPlanet Application Server instances while sharing a common web server and LDAP server. This configuration functions much like the first example, except that there is a single web server, and all iPlanet Application Server instances share a common configuration through the same LDAP server. This configuration has the advantage in that load balancing can be done across multiple iPlanet Application Server instances whereas the prior example requires clients to access multiple different web servers. While this scenario is possible, it may or may not be suitable for your particular application.



Hosting Partitioned Applications on Multiple Servers



To partition an application, you must divide up the application components that make up an application. Application components are then hosted by separate iPlanet Application Server machines. Partitioning applications allows you to specialize the type of processing each iPlanet Application Server machine performs.

For example, servlets responsible primarily for data access are I/O-intensive, while servlets responsible for performing calculations are CPU and active-memory intensive. To maximize your application's overall performance, you can partition the application to host these different types of servlets on separate iPlanet Application Server machines.

This section includes the following topics:


Configuring a Partitioned Application

To configure a partitioned application, perform the following steps:

  1. Deploy the complete application to all participating iPlanet Application Server machines using the iPlanet Application Server Deployment Tool.

    You can view the applications and associated modules deployed to each registered iPlanet Application Server in the left pane of the Application window. Expand a server to see the deployed applications and then expanding an application folder to see the modules in an application.

    For more information on application deployment, see the online help that is provided with the Deployment Tool.

  2. Enable load balancing, which will allow each server to find application components hosted on other servers.

    For more information on load balancing, see Balancing User-Request Loads.

  3. Disable specific application components on a server-by-server basis.

    See Disabling and Enabling Application Components.

While partitioning application components, if you want to view the server(s) where an application component is installed, perform the following steps:

  1. Open the Application window of iASAT.

  2. In the left pane of the Application window, expand the server whose application components you want to partition.

  3. Open an application folder and then highlight a servlet icon for J2EE applications. For C++ applications, highlight an AppLogic icon .

    Deployed application components appear in the right pane of the Application window.

    1. Select an application component in the right pane of the Application window.

    2. Click the Servlet Component Properties (or Application Component Properties).

      A dialog box appears displaying the application servers where the component is installed. If the selected iPlanet Application Server machine is not listed, you must deploy the .ear file containing the necessary application components to that machine.

    3. Click OK to dismiss the dialog box.


Disabling and Enabling Application Components

Disabling a component of your application (such as a servlet) stops users from accessing that component. Current requests are allowed to finish when a component is disabled, but no new requests are accepted until the component is re-enabled.

To disable an application component, perform the following steps:

  1. On the iASAT toolbar, click Application to open the Application window.

  2. In the left pane of the Application window, double-click the server where the application component(s) to be disabled resides.

  3. Expand the folder containing the application components to disable.

  4. Expand the application folder to see the application modules.

  5. Select the module that contains the application component(s) you want to disable.

    The right pane of the Application window shows each application component within the module.

  6. In the right pane of the Application window, locate the component to disable.

  7. Locate the component(s) to disable and click the Enabled checkbox to clear the checkbox.



  8. Click Toggle Enabled if you want to enable or disable (toggle) all the application components in a group.

    To enable application components, click their corresponding Enabled checkboxes to select them.

  9. Click Apply Changes to save your changes to your iPlanet Application Server machine.



Hosting and Deploying Applications for Load Balancing

Balancing application-request loads, or load balancing, differs from partitioning applications. Load balancing requires you to place one or more copies of an application component on multiple iPlanet Application Server machines rather than simply dividing an application's components among multiple servers (or partitioning the application). You then configure each server, allowing it to find application components on other servers.

When you deploy an application, you must decide if you want to configure the application for load balancing and, if so, how you will configure it. Choose among the following load balancing configurations:

  • Balancing loads only between the servers in a production environment, if deploying to more than one iPlanet Application Server machine.

    Example 1: You might have three iPlanet Application Server machines used for testing applications. Your production environment, where users' requests are actually processed, also consists of three iPlanet Application Server machines. Because the application components could be different between the two groups of servers, you do not want to enable application load balancing. Therefore, when you deploy an application from the test servers to the production servers, you should choose only to balance the loads between the destination servers.

  • Balancing application loads between existing production servers and new servers that you add to the enterprise.

    Example 2: Suppose you scale the enterprise to include three more iPlanet Application Server machines in the production group, you can join all the servers in that group when deploying the applications from one of the existing production servers to the new servers. The application loads are then balanced between the existing servers and the new servers. (Scenario 2)

  • Deploy the application locally to the server or servers (no load balancing).

The following illustration depicts a load-balancing distribution as discussed in the Example 1:



The next illustration depicts a joining of servers when adding new servers to a group and deploying an application to those servers with the join option as discussed in Example 2.



If you choose a local distribution during deployment, no application-request load balancing occurs between any of the servers.



Changing Attributes of Distributed Application Components



When you change such attributes as enabled sticky load balancing for an application component that is distributed across multiple servers, those changes replicate themselves on the servers where that component is hosted. Changing the distribution level (local, distributed, and global) of installed application components is useful if you previously installed an application locally, but now want to distribute the application for load balancing. You can also disable load balancing by changing a distributed application to a local configuration on the specified server.

If you change a component from a distributed or global state to a local state on one server, each server that hosts that component ceases to balance loads with the server where the distribution was set to local.

For example, an application component called ShopCart is distributed across servers A, B, and C. Should you decide to run ShopCart locally on server A, but continue to allow it to run in a distributed state across servers B and C, each server (A, B, and C) is automatically updated so that requests for ShopCart are no longer passed to server A from servers B and C. Instead, requests for ShopCart made to servers B or C are passed only between those two servers. All requests for ShopCart made to server A are processed only by server A.

To change the distribution level for an application component, perform the following steps:

  1. Open the Application window of iASAT.

  2. In the left pane of the Application window, expand the server for which you want to change application settings.

  3. Expand the application folder and select the servlet or AppLogic icon that contains the application components you want to modify.

  4. In the right pane of the Application window, select each application component for which you want to change the distribution level as follows:

    1. Local--The servlet or AppLogic runs on one iPlanet Application Server machine only

    2. Distributed--The servlet or AppLogic runs on specified iPlanet Application Server machines

    3. Global--The servlet or AppLogic runs anywhere in the enterprise.



  5. In the Mode column, change the distribution level.

    • If you are changing the distribution level for all components in the selected group, click Toggle Mode. All application components are updated simultaneously.

    • If you are modifying the Mode from Local to Distributed or Global, you must modify the application properties to specify across which iPlanet Application Server machines load balancing is to occur.

    • If you are modifying the Mode from Distributed or Global to Local, there is nothing more you need to do.

      When you change an application component's Mode to Distributed all registered servers appearing in the left pane of the Application window are added to that application component's server list. You can access the server list by clicking Application Component Properties.

  6. In the left pane, under Registered Servers, choose which iPlanet Application Server machines will participate in load balancing of the selected application component. The application component must be installed on each iPlanet Application Server machine participating in load balancing.

  7. If you need to register additional application servers, go to the File menu and choose New, then choose Server.

  8. Repeat these steps for each application component.

  9. Click Apply Changes to save your changes to the iPlanet Application Server machine.


Previous     Contents     Index     DocHome     Next     
Copyright © 2001 Sun Microsystems, Inc. Some preexisting portions Copyright © 2001 Netscape Communications Corp. All rights reserved.

Last Updated June 25, 2001