# # Sample ldirectord configuration file to configure various virtual services. # # Ldirectord will connect to each real server once per second and request # /index.html. If the data returned by the server does not contain the # string "Test Message" then the test fails and the real server will be # taken out of the available pool. The real server will be added back into # the pool once the test succeeds. If all real servers are removed from the # pool then localhost:80 is added to the pool as a fallback measure. # Global Directives checktimeout=3 checkinterval=1 fallback=127.0.0.1:80 autoreload=yes #logfile="/var/log/ldirectord.log" #logfile="local0" quiescent=yes # A sample virtual services that uses a ping check. # Note that using checktype=connect and protocol=udp # will also effect ping checks virtual=192.168.6.240:80 real=192.168.6.2:80 masq 1 "index.html" "Test Page" real=192.168.6.3:80 masq 3 "index.html" "Test Page" real=192.168.6.6:80 masq 7 "index.html" "Test Page" fallback=127.0.0.1:80 masq scheduler=rr #receive="Test Page" #request="index.html" #persistent=600 #netmask=255.255.255.255 checktype=negotiate checkcount=3 checktimeout=1 protocol=tcp