Contenues dans
Trouver plus de documentation
Ressources d'assistance comprises
| Télécharger cet ouvrage au format PDF (1536 Ko)
Exporting the Load Balancer Configuration File
The load balancer plug-in available with Sun Java System Application Server uses
a configuration file called loadbalancer.xml. After configuring
the load balancer, you can export the configuration details from domain.xml to the loadbalancer.xml file. You can do
this using the Admin Console or the asadmin utility.
To Export the Load Balancer Configuration Using the
Admin Console
-
Navigate to the HTTP Load Balancers node and expand it.
-
Click the desired load balancer.
All the load balancer
configuration details are displayed in the General, Settings and Target tabs.
-
Open the Export tab and click Export now.
-
Copy the exported load balancer configuration file to the web
server’s configuration directory.
To Export the Load Balancer Configuration Using the
asadmin tool
-
Export a loadbalancer.xml file using the asadmin command export-http-lb-config. For more
information on the command, see export-http-lb-config(1).
Export the loadbalancer.xml file for a particular load balancer configuration. You can specify
a path and a different file name. If you don’t specify a file name,
the file is named loadbalancer.xml. load-balancer-config-name. If you don’t specify a path, the file is created in
the domain-dir/generated directory.
To specify
a path on Windows, use quotes around the path. For example, "C:\Sun\AppServer\loadbalancer.xml" .
-
Copy the exported load balancer configuration file to the web
server’s configuration directory.
For example, for the Sun
Java System Web Server, that location usually is web-server-root/config .
The load balancer configuration file in the
web server’s configuration directory must be named loadbalancer.xml. If your file has a different name, such as loadbalancer.xml. load-balancer-config-name, you must
rename it.
|