From 299b70fc1ee38fc3d80e2ab0daecfe60856b515d Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 2 May 2014 22:24:54 -0500 Subject: [PATCH] Updated default connection limit. --- README.md | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5df220..907bd2b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Available variables are listed below, along with default values (see `vars/main. The user under which Nginx will run. nginx_worker_processes: "1" - nginx_worker_connections: "1024" + nginx_worker_connections: "8192" `nginx_worker_processes` should be set to the number of cores present on your machine. Connections (find this number with `grep processor /proc/cpuinfo | wc -l`). `nginx_worker_connections` is the number of connections per process. Set this higher to handle more simultaneous connections (and remember that a connection will be used for as long as the keepalive timeout duration for every client!). diff --git a/vars/main.yml b/vars/main.yml index 0304377..fd8e88f 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,6 +1,6 @@ --- nginx_user: "nginx" nginx_worker_processes: "1" -nginx_worker_connections: "1024" +nginx_worker_connections: "8192" nginx_client_max_body_size: "64m" nginx_keepalive_timeout: "65"