2. Maximize worker_connections
Worker connections tells worker processes how many clients can be served simultaneously by Nginx. The default value for this is 768 but it’s important to keep in mind that each browser will usually open at least 2 server connections. The maximum number for the worker connections setting is 1024 and it’s best to use this to get the full potential from Nginx. On this basis then, assuming 1 core for each worker process, setting worker_connections to 1024 implies that Nginx can serve 1024 clients/second.