Re: Automatically changing 'backup' servers?

From: Benoit <max.maverick#maverick.eu.org>
Date: Thu, 23 Oct 2008 16:27:47 +0200

Well for this kind of thing i won't choose haproxy as the ad-hoc solution I would prefer a VRRP based system like keepalived with the preempt option

           # VRRP will normally preempt a lower priority
           # machine when a higher priority machine comes
           # online.  "nopreempt" allows the lower priority
           # machine to maintain the master role, even when
           # a higher priority machine comes back online.
           # NOTE: For this to work, the initial state of this
           # entry must be BACKUP.
           nopreempt


David Rorex a écrit :
> Hi, we've been using haproxy for a few months now, and it works quite
> well for us. However, there is one feature I'd like that appears to
> not currently exist, I'm wondering if you can give me any suggestions.
>
> Basically, I have two MySQL servers configured as active / backup. Our
> web application connects to haproxy, which, most of the time then
> sends that database connection to the active server. However, if the
> active server goes down, it will then send the connections to the
> backup server.
>
> My problem comes from what happens when the active server comes back
> online. If it's been down for any period of time, it may take several
> minutes for the database to sync up to the backup, during which time
> it will be out of date, so I would not want to send any users to it.
>
> Ideally, there would be some setting where I could say "Ok, if the
> active server goes down, make it the backup, and then make the backup
> the active server". That way, when the downed server comes back
> online, it comes back as a 'backup' server, and no traffic gets
> directed to it (unless the other server then goes down).
>
> I hope this is clear, thanks.
> -David R
Received on 2008/10/23 16:27

This archive was generated by hypermail 2.2.0 : 2008/10/23 16:30 CEST