From 9b3634aef9643ad72f36d51e03b902657460ae95 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Sat, 25 Aug 2018 14:14:00 -0400 Subject: [PATCH 1/2] feat(charts): override controller GUNICORN_WORKERS --- charts/workflow/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/workflow/values.yaml b/charts/workflow/values.yaml index 2bb44afb8..369dd2f0f 100644 --- a/charts/workflow/values.yaml +++ b/charts/workflow/values.yaml @@ -67,6 +67,12 @@ global: # # In case of CNI you can not use `hostPort` notation due to https://github.com/kubernetes/kubernetes/issues/23920 # registry_proxy_bind_addr: "80" + # Clusters with large nodes (24 CPU+) may need to lower or tune the number of GUNICORN_WORKERS. + # + # Default value is based on your number of CPUs: + # - (os.cpu_count() or 4) * 4 + 1 + # This setting probably should not be higher than max_connections which defaults to 100 + # gunicorn_workers: 33 # Enable usage of RBAC authorization mode # From 9ca17219ffac550ff9a793bbe3125b33b55619b1 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Sat, 25 Aug 2018 14:15:53 -0400 Subject: [PATCH 2/2] feat(charts): override controller CONN_MAX_AGE --- charts/workflow/values.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/workflow/values.yaml b/charts/workflow/values.yaml index 369dd2f0f..2c5e3ce47 100644 --- a/charts/workflow/values.yaml +++ b/charts/workflow/values.yaml @@ -73,6 +73,15 @@ global: # - (os.cpu_count() or 4) * 4 + 1 # This setting probably should not be higher than max_connections which defaults to 100 # gunicorn_workers: 33 + # If there are enough gunicorn workers to use up max_connections, you may also want to reduce CONN_MAX_AGE + # so health checks time out their connection faster and don't use all available connections + # + # Valid values are a number of seconds, or 0 to disable persistent connections. + # Setting the value to "None" will ensure that connections are never timed out. + # - 0 + # - 600 + # - "None" + # conn_max_age: 600 # Enable usage of RBAC authorization mode #