Scott,
John is right, the way to do this is to use either heartbeat or
keepalive and fail over a VIP to a secondary machine in case the first
has issues. Make sure your haproxy files are identical and then test
the failover.
We use heartbeat for one of our clients and so far any time I have had
to either fail it over or it failed over on its own, we only lost 1 - 2
packets.
If your web servers require the visitors to be pinned to that system for
application reasons, make sure you have cookies setup in haproxy so that
when it fails over, the secondary haproxy server knows where to send the
visitor.
Joe
John Lauro wrote:
Not built into Haproxy, but you can use heartbeat or keepalived along
with haproxy for IP takeover on a pair of physical boxes (or VMs).
*From:* Scott Pinhorne [mailto:[email protected]]
*Sent:* Tuesday, March 17, 2009 10:52 AM
*To:* [email protected]
*Subject:* Multiple Proxies
Hi All
I am using haproxy to load balance/failover on a couple of my dev
HTTP servers and it works really well.
I would like to introduce hardware redundancy for the haproxy server,
is this possible with the software?
Best Regards
Scott Pinhorne
Tel: 0845 862 0371
cid:[email protected]
http://www.voxit.co.uk
/P //Please consider the environment before printing this email./
PRIVACY AND CONFIDENTIALITY NOTICE
The information in this email is for the named addressee only. As this
email may contain confidential or privileged information if you are
not, or suspect that you are not, the named addressee other person
responsible for delivering the message to the named addressee, please
contact us immediately. Please note that we cannot guarantee that this
message has not been intercepted and amended. The views of the author
may not necessarily reflect those of VoxIT Ltd.
VIRUS NOTICE
The contents of any attachment may contain software viruses, which
could damage your own computer. While VoxIT Ltd has taken reasonable
precautions to minimise the risk of software viruses, it cannot accept
liability for any damage, which you may suffer as a result of such
viruses. We recommend that you carry out your own virus checks before
opening any attachment.
--
This message has been scanned for viruses and
dangerous content by *VOXIT LIMITED* <http://www.voxit.co.uk/>, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
--
This message has been scanned for viruses by Colocube's AV Scanner
begin:vcard
fn:Joseph Hardeman
n:Hardeman;Joseph
org:Colocube, LLC;Operations
adr:;;4311 Communications Dr;Norcross;GA;30093;US
email;internet:[email protected]
title:Data Center Manager
tel;work:678-427-5890
tel;cell:678-427-5890
note:This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Thank you.
x-mozilla-html:FALSE
url:http://www.colocube.com
version:2.1
end:vcard