/usr/share/doc/perlbal/examples/load-balancer.conf is in perlbal 1.80-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #
# This is an example reverse configuration doing load balancing.
#
# See doc/config-guide.txt for descriptions of each command (line)
# and configuration syntax.
#
# this service's nodes are configured via a pool object. if you need
# to change them, telnet on in to the management port and you and/or your
# scripts can change them on the fly
CREATE POOL my_apaches
POOL my_apaches ADD 10.0.0.10:8080
POOL my_apaches ADD 10.0.0.11:8080
POOL my_apaches ADD 10.0.0.12
POOL my_apaches ADD 10.0.0.13:8081
CREATE SERVICE balancer
SET listen = 0.0.0.0:80
SET role = reverse_proxy
SET pool = my_apaches
SET persist_client = on
SET persist_backend = on
SET verify_backend = on
ENABLE balancer
# this service's nodes are read via a file. the file is checked every
# few seconds to see if it changed and automatically picked up. use what
# works for you.
CREATE POOL dynamic
SET nodefile = conf/nodelist.dat
CREATE SERVICE balancer2
SET listen = 0.0.0.0:81
SET role = reverse_proxy
SET pool = dynamic
ENABLE balancer2
# always good to keep an internal management port open:
CREATE SERVICE mgmt
SET role = management
SET listen = 127.0.0.1:16000
ENABLE mgmt
|