By mateymarinov
Hello all,
I am thinking about splitting my single machine setup into multiple machines. I am thinking of using a NGINX as a load balancer in front of my main PHP+NGINX machines. However, I am not sure how many cores and ram to put on my load balancing node. When my NGINX with PHP is processing the requests, it uses the cpu a lot but I am not sure if this is the same case when NGINX is as a load balancer. My question is, how power hungry is NGINX when the only job it does is load balancing ?
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Nginx running as a load balancer will use a lot less resources than a LEMP stack serving a site. In most cases, because network throughput is the same for all plans you can safely go with the smallest droplet (1GB RAM) for your load balancer. Should you see resource use increasing as your site scales you can resize to a larger plan in the time it takes to reboot your droplet.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.