Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVS to Nginx
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nmcsween
Guru
Guru


Joined: 12 Nov 2003
Posts: 381

PostPosted: Tue May 01, 2007 7:49 am    Post subject: LVS to Nginx Reply with quote

I have one hardware server that needs more than one web server for reliability and speed would LVS be what I should use for something like this?
Code:

                                      / Apache / Lighttpd / Postgresql
Hardware Server: -> LVS----------------------
                                      \ Apache \ Lighttpd \ Postgresql

Questions:
1. How would I divide the virtual hosts evenly between the two instances of apache?
2. If I use one instance of apache and one instance of lighttpd and postgresql to simplify things how could I and another box later without major downtime?
Edit: I know LVS is meant for more than 1 server at a time but that isn't possible due to budget constraints.. But in the future we will be adding more servers and want it to be smooth as possible

EDIT:
So after looking things through it was either litespeed which looks great but the licensing kills or nginx which is on par with litespeed guess i'll be going LVS -> nginx x3 ( Just wish there was some kind of persistent module support like litespeeds lsapi )
_________________
Great Resources
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Fri May 04, 2007 10:32 am    Post subject: Re: LVS to Nginx Reply with quote

nmcsween wrote:
I have one hardware server that needs more than one web server for reliability and speed would LVS be what I should use for something like this?


Yes.

Quote:

Code:

                                      / Apache / Lighttpd / Postgresql
Hardware Server: -> LVS----------------------
                                      \ Apache \ Lighttpd \ Postgresql

Questions:
1. How would I divide the virtual hosts evenly between the two instances of apache?


By using LVS-NAT (which can remap ports) and the (default) balancing algorithm 'Weighted Least Connection' wlc. I'm not familiar with port remapping so i'd suggest you take a look at the HOWTO: http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html

Quote:
2. If I use one instance of apache and one instance of lighttpd and postgresql to simplify things how could I and another box later without major downtime?


Again, not having any experience with this, my approach would be to set the weight of the connection to 0, let the existing connections die and then replace the daemon, after which you can set the weight to 1 again.

Quote:
Edit: I know LVS is meant for more than 1 server at a time but that isn't possible due to budget constraints.. But in the future we will be adding more servers and want it to be smooth as possible


Hope this helped somewhat. Good luck!


kind regards,

errtu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum