server

This command adds a member to the load balancer group.

Syntax

server address [weight] [mapped-port] [""] [health-port]

Parameters

address
Specifies the name or IP address of the server.
weight
For weighted algorithms: Specifies the relative weight (preference). Enter a value in the range 1 - 65000. The default value is 1.
mapped-port
Specifies the port on the real server. If nonzero, the associated real server is contacted on this port. Normally the real server is contacted on the same port number as the one for the virtual server. In this case, retain the default value of 0. If services run on different ports for different members of the group, define this value.

This port is used for IMSConnect health check.

health-port
Specifies the port to test. Retain the default value of 0 to use the port that is defined for this load balancer group.

Guidelines

The server command adds a server to the load balancer group. When you define a member server, optionally specify the ports to use for sending client requests and for the health check.

  • For the first-alive algorithm, the sequence is significant. The first server is the primary server, while subsequent entries serve as backup servers. For all other algorithms, the sequence is not significant.
  • For weighted algorithms, use the weight parameter to specify the relative preference of a server. The greater the value, the more likely this server is to receive a connection request. Assume that the load balancer group has the following members.
    • Member A with a weight of 100.
    • Member B with a weight of 60.
    • Member C with a weight of 40.

    Because of the weights, member A receives 50% of requests, member B receives 30% of requests, and member C receives 20% of requests.

If you use a weighted algorithm, there is a limit of 64 servers per load balancer group. For all other algorithms, the limit is 512 servers per load balancer group.

Example

Add ragnarok.appliance.com with a weight of 5 to the load balancer group.
# server ragnarok.appliance.com 5
#