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 1
        real=18.181.0.57:25 gate 1
        real=18.181.0.167:25 gate 6144
	real=18.181.0.228:25 gate 6144
	real=18.181.0.234:25 gate 4096
	real=18.181.0.235:25 gate 4096
	real=18.181.0.237:25 gate 4096
        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 1
	real=18.181.0.57 gate 1
	real=18.181.0.167 gate 6144
	real=18.181.0.228 gate 6144
	real=18.181.0.234 gate 4096
	real=18.181.0.235 gate 4096
	real=18.181.0.237 gate 4096
	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"
        real=18.181.0.57 gate "heartbeat/services", "2"
        real=18.181.0.167 gate "heartbeat/services", "3"
	real=18.181.0.228 gate "heartbeat/services", "4"
	real=18.181.0.234 gate "heartbeat/services", "5"
	real=18.181.0.235 gate "heartbeat/services", "6"
	real=18.181.0.237 gate "heartbeat/services", "7"
	service=http
        scheduler=wrr
        protocol=fwm
        checktype=negotiate
	checkport=80
