Nginx – the Ideal value for Worker Processes in Nginx Config

configurationnginxoptimizationUbuntu

I have 31GB RAM 8 Core Web Server with current load of 3k per min.

Currently worker_processes parameter in nginx config is 4 which as per my understanding means only 4 cores would be used. But when I see CPU performance I see that all 8 cores have equal load. Why?

enter image description here

Moreover, making this value 8 would help in my case?

Best Answer

Some other programs uses cpu, like php maybe? Paste all your top output, not only your cpu, but programs too. Turn on visibility of threads too... (H key, if I remember correctly.)

Related Topic