Re: Balancing OpenLDAP

2009-01-20 Thread Unai Rodriguez
How about writing a bash script that checks LDAP status somehow and have this script managed by xinetd? The script should return HTTP/1.1 200 OK\r\n if the LDAP server is fine or something else if not (e.g. HTTP/1.1 503 Service Unavailable\r\n). Xinetd could be configured in such a way that

Re: Balancing OpenLDAP

2009-01-20 Thread Willy Tarreau
On Tue, Jan 20, 2009 at 07:43:25PM +0800, Unai Rodriguez wrote: How about writing a bash script that checks LDAP status somehow and have this script managed by xinetd? The script should return HTTP/1.1 200 OK\r\n if the LDAP server is fine or something else if not (e.g. HTTP/1.1 503

Balancing OpenLDAP

2009-01-19 Thread Jordi Espasa Clofent
Hi all, Obviously, HAproxy can works fine in front of LDAP farm (using tcp balancing). I've read about 'leastconn' balance algorithm and it seems good for this goal. Althought, haproxy only knows if LDAP server is up using the tcp port check avaliability. ¿Is possible to check LDAP service

Re: Balancing OpenLDAP

2009-01-19 Thread Brian Gupta
¿Is possible to check LDAP service using directily some LDAP command (layer 7) through HAproxy? Jordi's question got me thinking. Does haproxy support externally scripted healthchecks? If not, this would be useful for implementing a variety of healthchecks that aren't built into haproxy.

Re: Balancing OpenLDAP

2009-01-19 Thread Willy Tarreau
On Mon, Jan 19, 2009 at 10:16:46PM +0100, Jordi Espasa wrote: Jordi's question got me thinking. Does haproxy support externally scripted healthchecks? If not, this would be useful for implementing a variety of healthchecks that aren't built into haproxy. Yes. It would be a very cool feature.