View previous topic :: View next topic |
Author |
Message |
nmcsween Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1728548438410482277fce4.png)
Joined: 12 Nov 2003 Posts: 381
|
Posted: Tue May 01, 2007 7:49 am Post subject: LVS to Nginx |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Errtu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/87726397545488a650cfd4.gif)
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Fri May 04, 2007 10:32 am Post subject: Re: LVS to Nginx |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|