LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2014, 08:32 PM   #1
user41094
LQ Newbie
 
Registered: Mar 2014
Location: London, United Kingdom
Posts: 6

Rep: Reputation: Disabled
how can I improve my web app availability


Hi. I'm needing some help on how I can improve my app's availability.
I'm a total noob when it comes down to networks, so If you could give me a few simple tips on how I can solve this I would appreciate.

To put it simple:
I have 3 machines (all with Ubuntu Server installed).
1 of them has HAProxy installed which receives all the users requests then load balances them by using round-robin algorithm, spreading the requests to my other 2 machines that have installed common ubuntu webservers.

Something like this:
Click image for larger version

Name:	haproxyeg.png
Views:	17
Size:	4.9 KB
ID:	15413

My problem is that if my HAProxy goes down or fails, for whatever reason, my app will become immediately unavailable because all requests go through HAProxy first before reaching the webservers.
I'm not looking for a super fancy complex solution that guarantees me 100% 24/7 uptime..
Just something that allows my app to keep running if my HAProxy fails.
 
Old 05-03-2014, 08:38 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Using a virtual IP address seems to be the way to go. http://www.howtoforge.com/high-avail...at-debian-etch

Last edited by sag47; 05-03-2014 at 08:43 PM.
 
Old 05-04-2014, 04:35 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...additionally: the IP address should be advertised using anycast, add a second HAProxy and duplicate your setup in one or more (globally dispersed?) data centres.

Last edited by unSpawn; 05-04-2014 at 06:38 AM. Reason: //Close tag
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open source taxi app designed to improve booking experience LXer Syndicated Linux News 0 07-30-2013 08:40 AM
LXer: Improve Web Site Performance on Apache HTTP LXer Syndicated Linux News 0 01-24-2012 08:50 AM
I would like to improve the security of my web server... trist007 Linux - Security 10 01-05-2010 04:29 PM
High Availability Web Server fw12 Linux - Server 2 11-22-2006 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration