Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th May 2010, 15:28
Slyz0r Slyz0r is offline
Junior Member
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Failover apache : Haproxy & keepalived

Hello people !

I want to configure a simple failover for my web server without load balancing.

I found 2 solutions :

1.) A director like HAproxy, redirects the requests to my web server 1, if it is down, the director redirects to my web server 2 configured with the "backup" option. The director should be checked with keepalived.

2.) Just configure an IP failover with keepalived between my 2 servers. They share a virtual ip address passing from one to another.

I have some questions about these.

1.) I follow this tutorial but when I configure keepalived, the two directors have the VIP configured in same time on their ethernet interface :s ... I suppose that the backup server must configure this vip if the master server is down, right ? And secondly the priority seems not to work...

2.) Is it possible with keepalived to check http or tcp service ? At this moment to redirect the requests to the second server, the master server must have a network or hardware issue... How to do for check http or tomcat service ? For example : if these services don't work, the vip is transfered to the backup server...

3.) The same as the two but with HAproxy.

4.) Someone has a better solution ? xD

Thanks a lot everybody !
Reply With Quote
Sponsored Links
  #2  
Old 14th May 2010, 10:51
Slyz0r Slyz0r is offline
Junior Member
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

About the first question, I found the solution !
My firewall blocked multicast paquets. !
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 21:13
Apache handeling SSL requests and passing them through to HAproxy gamboni Installation/Configuration 5 3rd September 2009 05:48
problems with suexec gobokster Installation/Configuration 7 7th May 2009 14:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45


All times are GMT +2. The time now is 09:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.