Load Balancing Feature
You can use Instant ASP Load Balancing to distribute your web service requests over clustered hosts to avoid transmission congestion and bottlenecks. This feature is only available to iASP Enterprise version. Your system should have two or more web servers which can support larger amounts of activity by distributing the request load between them so that no one server node is overloaded or underutilized, and all those web servers are configured to respond directly to the same requests.
1. Load
Balancing Configuration
Following
diagram shows the Load Balancing configuration:
2. Configure
the Load Balancing Server
After you installed an iASP enterprise version on your system, it includes the Load Balancing system:
Edit the
<iasp_home>/properties/loadbalance.properties file to fill the
following parameters:
# 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
if your ASP script used the application variable, please fill
following paramerters so that the Load Balancing System can build a database
to store the application variables, otherwise, the load balancing system
will not support the application variable.
The iASP server also need to configure the load balancing setting, please
see the Remote Console Applet to get the details.
DataBaseDriver | Certain drivers convert client JDBC calls to DBM. Each driver must supply a class that implements the Driver interface. |
DataBaseURL | JDBC URL-a database url of the form jdbc:subprotocol:subname. |
DataBaseUSER | The user name of the database on whose behalf the Connection is being made. |
DatabasePASS | User's password of the database. |
# DataBaseDriver=<JDBC DRIVER>
DatabaseDriver=oracle.jdbc.driver.OracleDriver
#
DataBaseURL=JDBC:suprotocol:subname
DataBaseURL=jdbc:oracle:thin:@192.9.200.13:1521:orcl
#
DataBaseUSER=user
DataBaseUSER=scott
#
DataBasePASS=password
DataBasePASS=tiger
Configure
the iASP server for Load balancing system.
To run the Remote Console Applet to setting the "Database
information", please make sure that the DatabaseDriver class had been added
to the start-admin and start-server script(start-admin.sh or
start-admin.bat).
3. Run the Load Balancing System
Start all
iASP Servers
Execute the start-server script on the iaspservers machine.
Note: Please add the database driver to start-server script.
Start Load
Balance Server
Type following command on the console prompt:
for windows:
java -classpath <iasp_home>/lib/iasplib.jar;<Database Driver
classpath> Distributive.LoadBalanceServer
for unix:
java -classpath <iasp_home>/lib/iasplib.jar:<Database Driver
Classpath> Distributive.LoadBalanceServer
Now you can
run your website by http://LoadBlanceServerIPaddress:<LoadBalanceServerProxyPort>/application-alias
For example:
The loadbalanceserver is 192.9.200.18, and its proxy port is 80, all
iaspservers have configured an alias "iasp". you can run
iasp by http://192.9.200.18:80/iasp.
Copyright
© 1998-2000, Halcyon Software Inc. All rights reserved.