Skip to content

Commit 54ffbf2

Browse files
committed
fix(router): allow customomize connection limits
1 parent 22b8346 commit 54ffbf2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/customizing_deis/router_settings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ setting description
5858
/deis/router/gzipVary nginx gzipVary setting (default: on)
5959
/deis/router/gzipDisable nginx gzipDisable setting (default: "msie6")
6060
/deis/router/gzipTypes nginx gzipTypes setting (default: "application/x-javascript application/xhtml+xml application/xml application/xml+rss application/json text/css text/javascript text/plain text/xml")
61+
/deis/router/maxWorkerConnections maximum number of simultaneous connections that can be opened by a worker process (default: 768)
6162
/deis/router/serverNameHashMaxSize nginx server_names_hash_max_size setting (default: 512)
6263
/deis/router/serverNameHashBucketSize nginx server_names_hash_bucket_size (default: 64)
6364
/deis/router/sslCert cluster-wide SSL certificate
6465
/deis/router/sslKey cluster-wide SSL private key
66+
/deis/router/workerProcesses nginx number of worker processes to start (default: auto i.e. available CPU cores)
6567
/deis/services/* healthy application containers reported by deis/publisher
6668
/deis/store/gateway/host host of the store gateway component (set by store-gateway)
6769
/deis/store/gateway/port port of the store gateway component (set by store-gateway)

router/image/templates/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
daemon off;
33

44
user www-data;
5-
worker_processes auto;
5+
worker_processes {{ or (.deis_router_workerProcesses) "auto" }};
66
pid /run/nginx.pid;
77

88
events {
9-
worker_connections 768;
9+
worker_connections {{ or (.deis_router_maxWorkerConnections) "768" }};
1010
# multi_accept on;
1111
}
1212

0 commit comments

Comments
 (0)