Load balancing policy

EAServer supports several algorithms to balance the IIOP client load between servers in the cluster. The EAServer name service uses the specified algorithm to determine which server each client connects to when the client resolves the component name. For more details, see “Understanding load balancing” in Chapter 7, “Load Balancing, Failover, and Component Availability,” in the EAServer System Administration Guide.

These settings affect only applications that use IIOP clients or that require inter-server calls between cluster members. The settings do not affect Web applications, since HTTP client load balancing is done outside of EAServer.

You can configure the load balancing policy to ensure the IIOP client load is evenly distributed. You can also change connection settings in your client programs to help ensure an even load distribution, as described in “IIOP client settings that affect load balancing”. EAServer supports these distribution policies:

To configure these settings in EAServer Manager, follow the instructions in “Configuring load balancing” in Chapter 7, “Load Balancing, Failover, and Component Availability,” in the EAServer System Administration Guide. To configure these settings with jagtool, use the set_props command to set these properties for the cluster:

Synchronize the cluster after modifying these settings.

Using partitioning You can also further balance the load by partitioning components and Web applications between different logical servers. For example, you might install your Web application in the logical server Jaguar1, using this server name to start with this configuration on two machines in the cluster, and install the packages containing your components in the logical server Jaguar2, using this server name to start the Jaguar2 configuration on four machines in the cluster. A drawback of this configuration is that component invocations from the Web tier and intercomponent calls can require interserver communication over the network, which is slower than in-server invocations and prevents the use of some optimizations such as EJB local interfaces.