The load balancer plug-in installation program makes a few modifications to the web server’s configuration files. The changes made depend upon the web server.
Modifications to Sun Java System Web Server
The installation program makes the following changes to the Sun Java System Web Server’s configuration files:
- Adds the following load balancer plug-in specific entries to the web server instance’s
magnus.conf
file: - Adds the following entries specific to the load balancer plug-in to the web server instance’s
obj.conf
file:
##EE lb-pluginInit fn="load-modules" shlib="
web_server_install_dir/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no"
Init fn="init-passthrough"
##end addition for EE lb-plugin
After installing, configure the load balancer
Modifications to Apache Web Server
Before installing the load balancer plug-in on Apache, see information on compiling and configuring ApacheModifications Made by the Installer
The load balancer plug-in installation program extracts the necessary files to the libexec
(Apache 1.3) or m
odules
(Apache 2.0) folder under the web server’s root directory. It adds the following entries specific to the load balancer plug-in to the web server instance’s httpd.conf
file:
machine_name:443>
##Addition for EE lb-plugin
LoadFile /usr/lib/libCstd.so.1
LoadModule apachelbplugin_module libexec/mod_loadbalancer.so
#AddModule mod_apachelbplugin.cpp
config-file
webserver_instance/conf/loadbalancer.xml
locale en
machine_ip_address>
DocumentRoot "
webserver_instance/htdocs"
ServerName server_name
##END EE LB Plugin ParametersVersion 7
Modifications After Installation
Additional Modifications on Microsoft Windows
If you are running Apache on Microsoft Windows, after installing the plug-in, some environment variable changes are required:Add a new path to the Path environment variable by clicking Start->Settings->Control Panel->System->Advanced->Environment Variables->System Variables. Edit the Path variable to include the following:application_server_install_dir/bin
In addition, set the environment variable NSPR_NATIVE_THREADS_ONLY to 1 before starting Apache web server.On the Environment Variables window, under System Variables, click New.Enter the following name and value pair:Variable name: NSPR_NATIVE_THREADS_ONLYVariable value: 1Restart the machine.Modifications to Microsoft IIS
To configure Microsoft Internet Information Services (IIS) to use the load balancer plug-in, modify certain properties in Windows Internet Services Manager. The Internet Services Manager is located in the Administrative Tools folder in the Control Panel folder.Make these modifications after installing the Sun Java System Application Server.- Open the Internet Services Manager.
- Select the web site for which you want to enable the plug-in. This web site is typically named the Default Web Site.
- Right click on the web site and select Properties to open the Properties notebook.
- To add a new ISAPI filter, open the ISAPI Filters tab, click Add, and follow the steps given below:
- Create and configure a new virtual directory:
- Right click on the default web site, select New, and then Virtual Directory.
The Virtual Directory Creation Wizard opens.- In the Alias field, type
sun-passthrough
. - In the Directory field, type
C:\Inetpub\wwwroot\
sun-passthrough - Check the Execute Permission checkbox. Leave all other permission-related check boxes are left unchecked.
- Click Finish.
- Add the path of
sun-passthrough.dll
file and application_server_install_dir/bin
to the system’s PATH
environment variable. Restart the machine. - Stop and start the web server for the new settings to take effect.
To stop the web server, right click on the web site and select Stop
. To start the web server, right click on the web site and select Start
.Next, type the following in a web browser to access the web application context root:http://
webserver_name/
web_application
where webserver_name is the hostname or IP address of the web server and /
web_application is the context root that you listed in the C:\Inetpub\wwwroot\sun-passthrough\sun-passthrough.properties
file. Verify that the web server, load balancer plug-in, and Application Server are operating correctly.
The installer automatically configures the following properties in sun-passthrough.properties
. You can change the default values.
Configuring Multiple Web Server Instances
The Sun Java System Application Server installer does not allow the installation of multiple load balancer plug-ins on a single machine. To have multiple web servers with the load balancer plug-in on a single machine, in either a single cluster or multiple clusters, a few manual steps are required to configure the load balancer plug-in.- Configure the new web server instance to use the load balancer plug-in, as described in "Modifications to Sun Java System Web Server", "Modifications to Apache Web Server", or "Modifications to Microsoft IIS".
- Copy the
sun-loadbalancer_1_1.dtd
file from the existing web server instance’s config
directory to the new instance’s config
directory. - To use the same load balancer configuration, copy the
loadbalancer.xml
file from the existing web server instance’s config
directory to the new instance’s config
directory. - To use a different load balancer configuration:
- Create a new load balancer configuration using
asadmin create-http-lb-config
. - Export the new configuration to a
loadbalancer.xml
file using asadmin export http-lb-config
. - Copy that
loadbalancer.xml
file to the new web server’s config
directory. For information on creating a load balancer configuration and exporting it to a loadbalancer.xml
file
No comments:
Post a Comment