Honor monitor type for server load balancing

This commit is contained in:
Chris Buechler 2009-04-04 21:01:05 -04:00
parent 379ab9a529
commit d38805bc18

View File

@ -81,11 +81,14 @@ function slbd_configure() {
$slbdconf .= "\t:method=round-robin:\\\n";
$slbdconf .= "\t:services={$svrcnt}:\\\n";
$slbdconf .= $svrtxt;
if($config['load_balancer']['lbpool'][$i]['monitor'] == "ICMP") {
$slbdconf .= "\t:ping:\n";
} else {
$slbdconf .= "\t:tcppoll:send=:expect=:\n";
}
}
}
$slbdconf .= "\t:tcppoll:send=:expect=:\n";
$should_start=1;
}
}