checktimeout=5
checkinterval=1
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes

# iptables rules caused SMTP to use FWM 3
virtual=3
        real=18.181.0.53:25  gate 4096 # old-faithful
        real=18.181.0.57:25  gate 4096 # better-mousetrap
        #real=18.181.0.167:25 gate 6144 # bees-knees
	#real=18.181.0.228:25 gate 6144 # cats-whiskers
	#real=18.181.0.234:25 gate 4096 # busy-beaver
	#real=18.181.0.235:25 gate 4096 # real-mccoy
	real=18.181.0.237:25 gate 4096 # pancake-bunny
	real=18.181.0.236:25 gate 4096 # whole-enchilada
	real=18.181.0.135:25 gate 1024 # shining-armor
        service=smtp
        scheduler=wlc
        persistent=600
        protocol=fwm
        checktype=negotiate
	checkport=25

# Apache (80, 443, and 444) uses FWM 2
virtual=2
	real=18.181.0.53  gate 3096 # old-faithful
	real=18.181.0.57  gate 3096 # better-mousetrap
	real=18.181.0.167 gate 6144 # bees-knees
	real=18.181.0.228 gate 6144 # cats-whiskers
	real=18.181.0.234 gate 4096 # busy-beaver
	real=18.181.0.235 gate 4096 # real-mccoy
	real=18.181.0.237 gate 4096 # pancake-bunny
	real=18.181.0.236 gate 4096 # whole-enchilada
	real=18.181.0.135 gate 1024 # shining-armor
	fallback=127.0.0.1 gate
	service=http
	request="heartbeat/http"
	virtualhost="scripts.mit.edu"
	receive="1"
	checktype=negotiate
	checkport=80
	scheduler=wlc
	persistent=600
	protocol=fwm

# Everything else uses FWM 1 and gets sent only to the primary
virtual=1
        real=18.181.0.53  gate "heartbeat/services", "1" # old-faithful
        real=18.181.0.57  gate "heartbeat/services", "2" # better-mousetrap
        real=18.181.0.167 gate "heartbeat/services", "3" # bees-knees
	real=18.181.0.228 gate "heartbeat/services", "4" # cats-whiskers
	real=18.181.0.234 gate "heartbeat/services", "5" # busy-beaver
	real=18.181.0.235 gate "heartbeat/services", "6" # real-mccoy
	real=18.181.0.237 gate "heartbeat/services", "7" # pancake-bunny
	real=18.181.0.236 gate "heartbeat/services", "8" # whole-enchilada
	real=18.181.0.135 gate "heartbeat/services", "9" # shining-armor
	service=http
        scheduler=wrr
        protocol=fwm
        checktype=negotiate
	checkport=80
