3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] [PATCH]mysql & ldap a...
FromSent OnAttachments
Chris MastersOct 5, 2003 1:29 pm 
Devin RubiaOct 6, 2003 8:37 am 
Erik BourgetOct 6, 2003 9:21 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] [PATCH]mysql & ldap auto failover and timeoutActions...
From:Devin Rubia (dev@thezone.net)
Date:Oct 6, 2003 8:37:41 am
List:net.sourceforge.lists.courier-maildrop

On Sun, Oct 05, 2003 at 01:29:27PM -0700, Chris Masters wrote:

Hi all,

I needed fault tolrance in my system, so I've had to write a patch to auto failover through a list of hosts for both mysql and ldap.

Just use the following in maildropmysql.config (or maildropldap.config):

hostname 192.168.0.1,192.168.0.2

I've done this by using a comma-seperated list of hosts and alarm signals for timeouts. It works really well.

It will attempt to connect to the first source (ldap/mysql) and if there is no response (within 5 seconds) it will try the next until a reponse or all have been tried.

I don't know about other LDAP implementations but the OpenLDAP libraries already do failover when given a comma seperated list of servers.