HP Matrix Operating Environment Software User Manual

Page 64

Advertising
background image

Following are examples of commands that create and delete a logical load balancer group.

When creating a logical load balancer group, a service IP address is usually on a public network.

C:\> ioexec creategroup logicalloadbalancer -s example-io-service -l

LogicalLoadBalancer:00000000-0000-0000-0000-000000000000 -g http-group

-P http -a 10.1.100.10 -p 80 -H example-website -U "/" -t 6000 -O

JSESSIONID -u administrator

C:\> ioexec deletegroup logicalloadbalancer -s example-io-service -l

LogicalLoadBalancer:00000000-0000-0000-0000-000000000000 -g http-group

-u administrator

where:
-s example-io-service

IO service name in which to add the logical load balancer
group

-l LogicalLoadBalancer:
00000000-0000-0000-0000-000000000000

Logical load balancer ID, located on the on the Services
tab. To view the ID, select a service and click Details, then
select the Load Balance tab

-g http-group

Name of the group to be added to the load balancer. This
is an arbitrary name specified by an administrator for easy
recognition

-P http

Type of protocol the application service will use

-a 10.1.100.10

IP address to be used for incoming requests

-p 80

Port on which the load balancer listens

-H example-host.com

Host name of the application service to be load balanced

-U "/"

URI path of the service to be load balanced. Specifying “/”
(the root path) does not restrict access. To restrict access,
specify a path such as “/mystore”. In this case, a request
to http://host/ will not succeed, but a request to
http://host/mystore/mydepartment will succeed

-t 6000

Session timeout, in seconds

-O JSESSIONID

Name or ID of an http(s) cookie to store session information

-u administrator

user name for the ioexec CLI

NOTE:

The SSL certificate for an https create load balancer group request must be

an X.509 certificate in DER format, with the private key included. The administrator generates this
certificate and ensures that it is signed:

F5 SSL Certificate

Adding and removing group members from a logical load balancer group

After deploying a service and creating a logical load balancer group, IO administrators can use
the following ioexec commands to add and remove servers from a logical load balancer group.

Table 3 ioexec add and remove load balancer group commands

Description

ioexec command

Adds a member to a logical load balancer group

addgroupmember logicalloadbalancer

Removes a member from a logical load balancer group

removegroupmemger
logicalloadbalancer

In the following examples, the ioexec addgroupmember logicalloadbalancer command
adds one server to the load balancer. The options are similar to the options in the creategroup

64

Installation and configuration

Advertising