Tag Archive optimize nginx for high traffic

Bysachinghare

Optimize Nginx For High Traffic

Optimize Nginx For High Traffic

I assume you have 4GB Ram, 8 Cores CPU and Storage dosen’t matter, let’s talk about you have 50K traffic everyday to your VPS and let’s tweak to accept more. If you have Ram of 1GB and 2 Core CPU and have traffic 20K to 30K per day then you can use the same tweak just use worker_processes as 2, worker_connections 25000 and worker_rlimit_nofile 25000

locate nginx.conf (/etc/nginx/nginx.conf) and edit OR add as following

user www-data;
worker_processes 4; (This tweak belongs to your CPU Cores, you can increase more if like to, recommended is 4)… Read More