Instant ASP Load Balancing

You can use Instant ASP Load Balancing to distribute your web service requests over clustered hosts to avoid transmission congestion and bottlenecks. In order to make use of the iASP load balancing feature, your system must have two or more web servers which can support larger amounts of activity by distributing the request load between them, and each server must be configured to respond directly to the same requests. Using load balancing, no one server node will be overloaded or underutilized.

Load Balancing Configuration

The following diagram describes the load balancing architecture:

     

Configuring the Load Balancing Server

After you have installed Instant ASP, you can configure load balancing in the following manner:

  1. Edit the following parameters in the <iasp_home>/properties/loadbalance.properties:
    # Set the Load Balance Server ProxyPort to 80.
    # Syntax: LoadBalanceServerProxyPort=<Number>
     LoadBalanceServerProxyPort=80
    # Add the cluster hosts to the Load Balancing System
    # Syntax: iaspserver<Number>=iASP Host IPaddress :Port


    for example:

    iaspserver1=192.9.200.13:8080
    iaspserver2=192.9.200.33
    iaspserver3=www.halcyonsoft.com
    ....
    iaspservern=192.9.200.18

  2. if your ASP scripts use application variables, please fill in the following parameters so that the Load Balancing System can build a database to store the application variables. You can configure these parameters using the iASP Remote Console applet or by editing the file directly. You can access the Remote Console Applet at http:<your.server.name>:9095/.



    Parameter Description Example
    Driver Certain drivers convert client JDBC calls to DBM. Each driver must supply a class that implements the driver interface. DatabaseDriver=oracle.jdbc.driver.OracleDriver
    URL JDBC URL—a database url of the form jdbc:subprotocol:subname. DataBaseURL=jdbc:oracle:thin:@192.9.200.13:1521:orcl
    User ID The user name on whose behalf the connection is being made.  DataBaseUSER=scott
    Password Password for the user name. DataBasePASS=tiger

    NOTE: Please make sure that the DatabaseDriver class has been added to both the start-admin.sh and start-server.sh scripts.

Starting the system

Use the following procedure to start the load-balanced iASP system:

  1. Start all of your iASP servers using start-server.sh.
  2. Next, start the load balancing server using the following procedure:
    At a Windows console prompt, enter the following command:

    java -classpath <iasp_home>/lib/iasplib.jar;<Database Driver classpath> Distributive.LoadBalanceServer

    or, in a UNIX/Linux shell, enter the following command:

    java -classpath <iasp_home>/lib/iasplib.jar:<Database Driver Classpath> Distributive.LoadBalanceServer

  3. You can access the website at http://<load_balanced_website_IP>:<loadbalanced_website_proxy_port/application_alias.

    EXAMPLE:
    The loadbalanceserver is 192.9.200.18, and its proxy port is 80, and the application alias is 'iasp':
    http://192.9.200.18:80/iasp

Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.