Re: Using HAProxy for ldap

From: Brane F. Gračnar <brane.gracnar#tsmedia.si>
Date: Mon, 24 Oct 2011 15:54:57 +0200


On Monday 24 of October 2011 14:29:07 Danie Weideman wrote:
> Is it possible to loadbalance between two active master ldap servers?
> If so I would like for one to be always persistent.

Something like:

frontend FE_ldap

	bind	1.2.3.4:389
	mode	tcp

	defailt_server BE_ldap

backend BE_ldap
	mode	tcp

	server node_1		1.2.3.4:389
	server node_2		5.6.7.8:389 backup


If both nodes can act as masters, and you want persistence based on client's source, just add the following into backend section:

stick-table type ip size 200k expire 60m stick on src

Best regards, Brane Received on 2011/10/24 15:54

This archive was generated by hypermail 2.2.0 : 2011/10/24 16:00 CEST