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.
# 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.5Lines 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.