
Load Balancing for Registered Programs
The value of the parameter
gw/reg_lb_level defines the type of load balancing for registered programs. Load balancing for registered programs was introduced with Release 4.6D. Earlier Releases work with method 0, i.e. use the first free registered program. The following values are permitted:The value of the parameter
gw/reg_lb_ip determines 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.
The value of a parameter is a 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.

a.b.c.d=val1 e.f.g.*=val2 linux1=val3
Important
: you can specify a range of IP addresses instead of individual ones, 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.
For load balancing level 2 (
gw/reg_lb_level), the registered program with the least load is used. The load is calculated as follows.
Example of request assignment to the servers
The following values are defined in the profile:
gw/reg_lb_level=2
gw/reg_lb_ip= Server1=2 Server2=3 Server3=4 Server4=4
This results in the following weighting values for the various servers:
Server1: Load 2
Server2: Load 3
Server3: Load 4
Server4: Load 4
|
Request |
Server with Least Load |
Load after Request Assignment |
|||
|
Server 1 |
Server 2 |
Server 3 |
Server 4 |
||
|
All servers start with 0 |
0 |
0 |
0 |
||
|
Request 1 |
Server1 -> load + 2 |
2 |
0 |
0 |
|
|
Request 2 |
Server2 -> Load + 3 |
2 |
3 |
0 |
|
|
Request 3 |
Server3 -> Load + 4 |
2 |
3 |
4 |
|
|
Request 4 |
Server1 -> Load + 2 |
4 |
3 |
4 |
|
|
Request 5 |
Server2 -> Load + 3 |
4 |
6 |
4 |
|
|
Request 6 |
Server1 -> Load + 2 |
6 |
6 |
4 |
|
|
Request 7 |
Server3 -> Load + 4 |
6 |
6 |
8 |
|
|
Request 8 |
Server1 -> Load + 2 |
8 |
6 |
8 |
8 (*) |
(*) If after request 7, another server logs on that responds to the same registration ID, the system assigns it the highest value of the load value (value 8 in the above example). This server would then participate normally in the load assignment process.

The weighting values of the IP addresses can be changed dynamically.
The weighting values of the IP addresses can be influenced by dynamically changing the value.
If you want to change an entry in the list, enter the new value as the "load". For example,
Server1=3If you want to delete an entry in the list, enter 0 as the "load". For example,
Server2=0If you want to add an entry, enter the new IP address, or server name. For example,
LinuxLab=1