LDAP Health Checks
HAProxy Enterprise can health check LDAPv3 servers. The load balancer uses the Anonymous Authentication Mechanism of Simple Bind to connect. The check is valid if the server responds with a successful result message.
Configure the LDAP servers accordingly to allow anonymous binding. You can do this with an IP alias on the server side that allows only HAProxy Enterprise IP addresses to bind to it.
-
Add
option ldap-check
to yourbackend
section. In this example, we send the health check probes to alternative IP addresses specified with theaddr
parameter on theserver
lines:backend be_myapp option ldap-check server srv1 10.0.0.1:389 check addr 10.0.0.11 server srv2 10.0.0.2:389 check addr 10.0.0.12
Next up
MySQL Health Checks