LB

Section: File Formats (5)
Updated: limit
Index Return to Main Contents
 

NAME

Lb.conf - load balancer configuration file for lb(1)  

DESCRIPTION

This file contains information about local machines recognized by lb(1). The format consists of single line entries with three fields. The fields are machine-name, power-factor, and load-limit.

machine-name is a legal or recognized hostname which is to be a candidate for jobs initiated through the use of lb(1). This machine must support the statistics server protocol used by lb(1).

power-factor is a floating point value, and has meaning only by comparison to the power-factors of other machines. The machines with the larger power-factors will be preferred to those with smaller power-factors.

load-limit specifies the load-average beyond which jobs should not be sent to that machine.

 

SAMPLE FILE

# lb.conf
#
# The format of this file is <machine> <sfactor> <limit>

# where <machine> is a legal machine name
#       <sfactor> is that machines selection factor
#       <limit>   is the load limit for that machine
#

#  MACHINE            SFACTOR   LIMIT
brahms.fubar.com      200       3.0
mozart.fubar.com      150       2.5
chopin.fubar.com      120       2.5
bach.fubar.com        100       1.5

Lines beginning with # are comments.

In this example, brahms.fubar.com is preferred to mozart.fubar.com, which is preferred to chopin.fubar.com, if their loads are exactly equal. In practice, the load average (number of jobs in the run queue over the last minute) is compared to the load-limit and then divided by the power-factor, for each machine listed. If the load average exceeds the load-limit, that machine will not be considered. When all machines listed have been considered, the one with the smallest value of (load-average/power-factor) will be selected.

 

SEE ALSO

lb(1), w(1), uptime(1)  

NOTES

There are limits to the line-length and the hostname length, which are set in the file config.h when lb(1) is built. By default, these are 255 and 64 respectively, but may be tweaked at the installers discretion.


 

Index

NAME
DESCRIPTION
SAMPLE FILE
SEE ALSO
NOTES

This document was created by man2html, using the manual pages.
Time: 06:11:26 GMT, December 12, 2024