Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th January 2011, 17:41
dagaz11 dagaz11 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default haproxy - beginner question

Quote:
Hi,

I have a webapp I'd like to host using a load balancer. Regarding my background, I'm a coder and have only basic knowledge of networks...

My question: I read one of the Haproxy tutorials and had no problem up to this point:

Quote:
You can now make HTTP requests to the virtual IP address 192.168.0.99 (or to any domain/hostname that is pointing to the virtual IP address), and you should get content from the backend web servers.
How would I then make the switch to linking it to the load balancer's IP¨seen by my users' browser?
New question: after further research, I'm going to go with dedicated servers. The host I found offers automated failover IP, so I'm thinking of installing Haproxy without heartbeat on both load balancers and have haproxy listen on its own server IP. If the LB in use fails, the other should be ready to take over unless I got something wrong.

Can anyone confirm it, and that it's possible to use public addresses for both load balancers and webservers?

Last edited by dagaz11; 26th January 2011 at 19:54.
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2011, 15:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

If your host takes care of automatically switching the failover IP if one of your web servers fails and you intended to use the load balancers solely for detecting if the backend servers are still up, then you don't need the load balancers in front of the web servers.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th January 2011, 00:04
dagaz11 dagaz11 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you for your reply falko.

No, the IP failover is manual. I'm also very concerned about load balancing as I'd like my app to be able to scale out to an extend.
Reply With Quote
  #4  
Old 28th January 2011, 15:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

In this case you can use HAProxy, but you don't need heartbeat/keepalived.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
dagaz11 (28th January 2011)
  #5  
Old 28th January 2011, 22:56
dagaz11 dagaz11 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Thank you. One last question. On the main load balancer and the back-up one, should I have HAproxy listen on its server's IP or the public IP?
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
Question about haproxy with SSL wxman HOWTO-Related Questions 3 6th December 2010 14:18
Dumb Virtualhost Question DantePasquale Server Operation 1 16th December 2009 08:43
Apache handeling SSL requests and passing them through to HAproxy gamboni Installation/Configuration 5 3rd September 2009 05:48
Hostname question, and DNS question andrewfashion General 1 20th April 2009 14:30
HA Loadbalancer HAProxy Question tfunky HOWTO-Related Questions 9 8th November 2007 19:46


All times are GMT +2. The time now is 01:48.


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