Hitachi

uCosminexus Application Server System Setup and Operation Guide


4.7.5 Setting up environment for connecting to the load balancer

To control the load balancer using Smart Composer functionality, you must set up a connection with the load balancer. Additionally, you must define the load balancer (load-balancer tag definition) in Easy Setup definition file.

Organization of this subsection

(1) Load balancer connection settings

Use Smart Composer functionality to define type of the load balancer, connection method and the other connection information required for accessing the load balancer. Define the information in the lb.properties (load balancer definition property) file on the host for allocating the management functionality. The settings include information unique to the load balancer as well as common information.

The following example describes the method of setting the lb.properties file to directly connect to load balancers (AX2000, BS320) using telnet. For an example of setting the load balancer to connect directly using APIs, see 8.5 Load balancer connection information setup with Management Server (Smart Composer functionality) in the uCosminexus Application Server Security Management Guide.

lb.list=192.168.100.10
lb.enable_passwd.192.168.100.10=adminpw
 
lb.connect_type.192.168.100.10=telnet
#lb.telnet.port.192.168.100.10=23
lb.telnet.user.192.168.100.10=user01
lb.telnet.passwd.192.168.100.10=user01pw
lb.telnet.user_prompt.192.168.100.10="AX login: "
lb.telnet.passwd_prompt.192.168.100.10="Password: "
lb.telnet.login_prompt.192.168.100.10=>
#lb.telnet.login_timeout.192.168.100.10=10
#lb.telnet.command_timeout.1192.168.100.10=10

The lb.properties file contains information such as user name and password used for connecting to the load balancer. Assign appropriate access permissions to maintain the confidentiality of the information.

(2) Easy Setup definition file settings

Define following tags (load-balancer tags) in the definition of the load balancer of Easy Setup definition file.

#

These tags are necessary for using Cookie Switching functionality of the load balancer. These settings enable a single Web server or the J2EE server to process a series of HTTP requests. Also, when using Cookie Switching functionality of the load balancer, set the J2EE server Web container as webserver.container.server_id.enabled=true in the physical tier definition (tier tag).

Following example shows the method to create Easy Setup definition file, and describes the contents of definition in the load-balancer tag defining the load balancer.

Definition example of the load-balancer tag of Easy Setup definition file
<!--Specify the settings of load balancer.-->
<load-balancer>
  <name>MyAX2000</name>
  <load-balancer-type>ACOS</load-balancer-type>
  <management-host>192.168.100.10</management-host>
  <virtual-server>
    <virtual-server-name>www.sample.com</virtual-server-name>
    <ip-address>192.168.1.10</ip-address>
    <http-port>80</http-port>
  </virtual-server>
</load-balancer>