New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Lowend vps (eg. 32mb) as Front End Server to the Load Balancer
Hi All, i'm new here. Thus far i visit lowendtalk as passive reader.
I've read from nginx wiki about configuration to create load balanced web server. Is it possible for ultra low end vps (eg. with 32mb ram as ipxcore's offer) as a frontend server to the load balancer? My plan is to make the lowend vps as main server for nginx, while the actual web processing (database query, dynamic page building) done on several more powerfull servers. Can the frontend server serve many concurent request whitout failing? Do you have suggestion about this? Thanks.
PS. Sorry for bad english.
Comments
I actually don't know and I'd love to do this too (or atleast know how to).
So SOMEONE WHO HAS MORE EXPERIENCE THAN ME HELP!
Probably. Obviously you must try first before moving your sites.
Also, some providers will cap you more or less about the maximum sockets allowed. And a 32MB plan will not give you enough bandwidth per month.
What is the purpose of the caps?....
I'd recommend looking at HAProxy instead. It should theoretically run on very low-end servers, and has more features for load-balancing than nginx, plus was made specifically for the purpose of load-balancing.
It was to express my excitement for your help
Ah, i forgot about bandwidth.
Thanks for the recomendation, i'll try on local virtual machine first.
In theory if you need good performance front end servers should have good parameters: RAM to cache as many object as possible to avoid fetching them from back end every time, port/bandwidth - it's better to have front end server on 1G connection and back end servers on 100M. Please remember also that if you want to share session across HA environment sometimes you need to use few tricks. For low end solutions I would suggest to use 2+ VMs with ngnix proxy (with load balancing) balanced using DNS round robin plus 4+ nodes as a back end servers running ngnix and Percona Cluster (maybe some additional GlusterFS in the background). You can setup such environment for less then 30USD per month.
Some very good tips.