Description of problem: Various nginx optimization guidelines all over the Web recommend setting "use epoll" and "multi_accept on" inside the "events {...}" configuration context for better performance under load. As it turns out, "use epoll" is the default choice on recent Linux kernels, but "multi_accept" is turned off by default, which results in clients experiencing the server as being sluggish and unresponsive when under load. Adding "multi_accept on" to the default configuration would allow each worker to immediately accept all new connections. http://nginx.org/en/docs/ngx_core_module.html#multi_accept I believe adding this setting to the default nginx.conf shipping with Fedora (at least anything >= 24) and EPEL (>= 7) would be beneficial to almost every user. TIA for considering this proposal! diff --git a/nginx.conf b/nginx.conf index 7fa8133..68c8cf0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,6 +11,7 @@ pid /run/nginx.pid; include /usr/share/nginx/modules/*.conf; events { + multi_accept on; worker_connections 1024; }
Hi Gabriel. Thanks for your request. There are some caveats to multi_accept, so I'm not going to add to the default config. The administrator can add if they want.