There's more...

The worker connections can be further enhanced on modern systems by a few extra directives. Here's what our updated block directive looks like:

events { 
    worker_connections  4096; 
    multi_accept        on; 
    use                 epoll; 
} 

We have added the additional multi_accept directive and set it to on. This tells the NGINX worker to accept more than one connection at once when there are a high number of new, incoming connections.

Then, we set the use directive to epoll. This is the method NGINX uses to process the connections. While on every modern system this should be automatically set to epoll by default, we can explicitly set this to ensure that it's used.