Skip to content

Improve Nginx Performance: Multi-Threading

View on Twitter

💡 Nginx is an awesome web server and reverse proxy. But some if its defaults are better changed to more sane values.

👉🏼 One such value is "worker_processes". By default, Nginx uses only one CPU core. Set this to "auto" to use all available cores on the system.

By setting worker_processes to auto, Nginx will spin up a number of threads equal to available CPU cores.

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
Find DigitalOcean Region With Lowest Ping Read tip
Well-Known URL for Changing Passwords Read tip
Organise Large Nginx Configs Read tip