From 3712ab804514c00d4662260263680c1b3eb7468b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Mon, 11 Jun 2018 20:29:09 +0200 Subject: [PATCH] worker_connections fine tuning --- README.md | 1 + public/templates/conf/nginx.conf.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1176042..c6045f3 100644 --- a/README.md +++ b/README.md @@ -68,3 +68,4 @@ Online nginx configuration generator. * [h5bp/server-configs-nginx](https://github.com/h5bp/server-configs-nginx) * [Diffie-Hellman DSA-like parameters](https://security.stackexchange.com/questions/95178/diffie-hellman-parameters-still-calculating-after-24-hours/95184#95184) * [hstspreload.org](https://hstspreload.org) +* [Optimal value for nginx worker_connections](https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections) diff --git a/public/templates/conf/nginx.conf.html b/public/templates/conf/nginx.conf.html index 290085b..fbd05ee 100644 --- a/public/templates/conf/nginx.conf.html +++ b/public/templates/conf/nginx.conf.html @@ -1,11 +1,11 @@ user {{ data.userĀ }}; pid {{ data.pid}}; worker_processes {{ data.worker_processes }}; -worker_rlimit_nofile 409600; +worker_rlimit_nofile 65535; events { - worker_connections 4096; multi_accept on; + worker_connections 65535; } http {