LVS/ldirectord.cf

From Wikitech
< LVS

<- back to LVS

# General directives
# See manpage for more


# Server considered dead after # many seconds
checktimeout=3

# check servers every # seconds
checkinterval=1

# Server on wich queries are redirected when all servers are down
fallback=127.0.0.1:80

# autoreload configuration file on modification [no]
autoreload=no

# Log to a file ...
#logfile="/var/log/ldirectord.log"
# .. or to syslog
#logfile="local1"


virtual=207.142.131.213
    # MUST INDENT !
    # will
    real=10.0.0.243:80 gate
    # browne
    real=10.0.0.229:80 gate
    # srv10
    real=10.0.0.194:80 gate
    # srv9
    real=10.0.0.195:80 gate
    # srv8
    real=10.0.0.196:80 gate
    # srv7
    real=10.0.0.197:80 gate
    # srv6
    real=10.0.0.198:80 gate

    fallback=127.0.0.1:80 gate
    protocol=tcp

    service=http
    # object requested to check service
    request="index.html"
    # regex to compare
    receive="Test Page"

    # destination hashing
    scheduler=dh