summaryrefslogtreecommitdiffstats
path: root/.examples
diff options
context:
space:
mode:
authorykgmfq <free-software@dm-poepperl.de>2019-06-19 00:37:44 +0200
committerJ0WI <J0WI@users.noreply.github.com>2019-06-19 00:37:44 +0200
commit53bb46d1dc4685811ff67e64b098c26e652761a1 (patch)
tree26cf13254fd76b0bcbd216a301371dc3bf850e7a /.examples
parent17a6790ac8adda1fd56e30a22ec91c0882fc96d5 (diff)
Let nginx decide on number of worker processes (#732)
From https://www.nginx.com/blog/tuning-nginx/: In most cases, running one worker process per CPU core works well, and we recommend setting this directive to auto to achieve that. There are times when you may want to increase this number, such as when the worker processes have to do a lot of disk I/O.
Diffstat (limited to '.examples')
-rw-r--r--.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf2
7 files changed, 7 insertions, 7 deletions
diff --git a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
index 858674ad..b5cffcb5 100644
--- a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
index 858674ad..b5cffcb5 100644
--- a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf b/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
index 858674ad..b5cffcb5 100644
--- a/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
index eca9db99..6cb34792 100644
--- a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
index eca9db99..6cb34792 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
index eca9db99..6cb34792 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
index eca9db99..6cb34792 100644
--- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
@@ -1,4 +1,4 @@
-worker_processes 1;
+worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;