Show TOC

Function documentationLoad Balancing Parameters Locate this document in the navigation structure

 

You use these parameters to configure load balancing for registered programs. You can specify that strong servers receive more requests than weaker ones.

Features

gw/reg_lb_level

Defines the type of “load balancing” for registered programs. The following values are permitted:

  • 0: No load balancing; the first free registered program is used.

  • 1: The program with the lowest counter is used. Every time a registered program is assigned a request, the counter is increased by one.

  • 2: The program with the smallest load is used. The load is determined as defined by profile parameter gw/reg_lb_ip.

Default Value

1

Unit

Integer: 0,1,2

Dynamic

Yes

gw/reg_lb_default

Default value for the load of a server if its IP address cannot be found in the list.

Default Value

20

Unit

Integer

Dynamic

Yes

gw/reg_lb_ip

Specifies the load value for an IP address or for a range of IP addresses.

A host name can be entered in the place of an IP address. The gateway then determines the IP address for the host name. When the registered program logs on to the gateway, the IP address is used to determine what the load of the IP address is. The system searches the list in the order specified by the profile parameter. This value is added to the load when this program receives a request. If the IP address is not found, the system uses the value defined by gw/reg_lb_default. This ensures that a strong server is assigned more requests than a weak server. A server that registers itself with the gateway receives as initial value the highest load of all servers with the same registration ID. If no servers are registered with this ID, or if no requests have been assigned to these servers, the value is 0.

Syntax Syntax

List of IP addresses or host names The corresponding load is output with an equal sign after each IP address. The load is a weighting factor that specifies the strength of a particular server. The higher the value, the weaker the server. The maximum value is 1.

  1. a.b.c.d=val1 e.f.g.*=val2 linux1=val3
End of the code.

Note Note

You can specify a range of IP addresses instead of a single IP address, for example:

gw/reg_lb_ip = 194.56.48.*=1 194.56.49.*=3

All servers from the 194.56.48 network are highly efficient, the servers from the 194.56.49 network are somewhat weaker, and all other servers are extremely weak and should only be used infrequently.

End of the note.

Default Value

""

Unit

Special string

Dynamic

Yes

More Information

For a detailed description, see Load Balancing for Registered Programs.