
Parameter
gw/reg_lb_ip
Short text
Define load value for specific ip addresses or range of ip addresses.
Parameter Description
This parameter 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.
Syntax
155.56.92.48=3 155.56.91.*=2 LinuxLab=1
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.
For load balancing level 2 ( gw/reg_lb_level), the registered program with the smallest load is used.
The load is calculated as follows. 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 value is taken that is defined with parameter gw/reg_lb_default.
This ensures that a strong server is assigned more requests than a weaker server.
A server that registers itself with the gateway receives as initial value the highest load of all servers with the same registration ID.
For example:
gw/reg_lb_level = 2
gw/reg_lb_ip = 194.56.48.*=2,194.56.49.*=4
Servers with the IP address 194.56.48.* are given twice as many requests as servers 194.56.49.* and ten times as many requests as the other servers.
The list of IP addresses can be changed by dynamically changing the value.
• If you want to change an entry in the list, you simply specify the new value as the ‘load’, for example 194.56.48.*=3
• If you want to remove an entry from the list, you specify 0 as the value for the ‘load’, for example 194.56.48.*=0
• If you want to add an entry, you simply specifiy the new IP address or the computer name, for example LinuxLab=1
Caution
The changed values only apply for servers that re-register to the gateway.
You can see the current list in the Gateway-Monitor, transaction SMGW.
Application Area
Gateway
Parameter Unit
List of IP addresses=value, separated by spaces
Default Value
–
Who is permitted to make changes?
Customer
Operating System Restrictions
None
Database System Restrictions
None
Are other parameters affected or dependent?
gw/reg_lb_level
gw/reg_lb_default
Values allowed
Syntax shown above


