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 4096 # bees-knees
	#real=18.181.0.228:25 gate 1024 # 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 1024 # whole-enchilada
	#real=18.181.0.135:25 gate 4096 # shining-armor
	#real=18.181.0.141:25 gate 4096 # golden-egg
	real=18.181.0.203:25 gate 4096 # miracle-cure
	real=18.181.0.204:25 gate 4096 # lucky-star
        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 4096 # old-faithful
	real=18.181.0.57  gate 4096 # better-mousetrap
	real=18.181.0.167 gate 4096 # bees-knees
	#real=18.181.0.228 gate 1024 # 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 1024 # whole-enchilada
	#real=18.181.0.135 gate 4096 # shining-armor
	#real=18.181.0.141 gate 4096 # golden-egg 
	real=18.181.0.203 gate 4096 # miracle-cure
	real=18.181.0.204 gate 4096 # lucky-star
	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
	#real=18.181.0.141 gate "heartbeat/services", "10" # golden-egg
	real=18.181.0.203 gate "heartbeat/services", "11" # miracle-cure
	real=18.181.0.204 gate "heartbeat/services", "12" # lucky-star
	service=http
        scheduler=wrr
        protocol=fwm
        checktype=negotiate
	checkport=80
