PDA

View Full Version : How do you setup load balanced web servers?


jwocky
10-25-2012, 11:58 PM
Im conceptually confused on how this works. Do you setup two identical web servers and have some kind of rsync constantly running to keep them in sync?

Thanks!

snakes1100
10-26-2012, 01:08 AM
You dont need exact duplicates.

I prefer nginx, if you do, its better to use nginx-upstream-fair off github versus using round-robin, you will need to manually compile nginx, if using nginx-upstream-fair

You can rsync or do a nfs share, id only do the nfs if the servers are on a dedicated gigabit switch or connected nic to nic on a 2nd set of nics.

rysnc is faster than a nfs anyways, just depends on what you want & have as described above, i use a mix of both.