You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2017/09/11 07:56:55 UTC

[incubator-openwhisk] branch master updated: Make router worker connections configurable. (#2233)

This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 290eecd  Make router worker connections configurable. (#2233)
290eecd is described below

commit 290eecd66476827f9c2294ddb91e7188426f6395
Author: Xin Cai <ca...@163.com>
AuthorDate: Mon Sep 11 09:56:52 2017 +0200

    Make router worker connections configurable. (#2233)
---
 ansible/group_vars/all                      | 2 ++
 ansible/roles/nginx/templates/nginx.conf.j2 | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ansible/group_vars/all b/ansible/group_vars/all
index 92183be..1018bb1 100644
--- a/ansible/group_vars/all
+++ b/ansible/group_vars/all
@@ -165,6 +165,8 @@ nginx:
     password_file: "ssl.pass"
     client_ca_cert: "{{ openwhisk_client_ca_cert | default('openwhisk-client-ca-cert.pem') }}"
     verify_client: "{{ nginx_ssl_verify_client | default('off') }}"
+  wpn:
+    router: "{{ nginx_wpn_router | default('1') }}"
 
 # These are the variables to define all database relevant settings.
 # The authKeys are the users, that are initially created to use OpenWhisk.
diff --git a/ansible/roles/nginx/templates/nginx.conf.j2 b/ansible/roles/nginx/templates/nginx.conf.j2
index 7710dc6..53205b7 100644
--- a/ansible/roles/nginx/templates/nginx.conf.j2
+++ b/ansible/roles/nginx/templates/nginx.conf.j2
@@ -1,5 +1,7 @@
 {# this template is used to generate a nginx.conf for booting a nginx server based on the given environment inventory #}
 
+worker_processes {{ nginx.wpn.router }};
+
 events {
 {# default: 1024 #}
     worker_connections  4096;

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].