Commit d537ba98 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor fixes to api deployment.

parent 2e7879ff
Pipeline #54113 passed with stages
in 16 minutes and 43 seconds
......@@ -64,10 +64,10 @@ metadata:
data:
gunicorn.conf: |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
worker_class = 'gevent'
threads = 4
worker_class = {{ .Values.api.workerClass }}
threads = {{ .Values.api.threads }}
worker_connections = 1000
worker = 48
worker = {{ .Values.api.worker }}
---
apiVersion: apps/v1
kind: Deployment
......
......@@ -28,8 +28,12 @@ images:
api:
replicas: 1
https: true
## Number of gunicorn worker. Recommendation is 2xnum_cores+1
## Number of gunicorn worker.
worker: 10
## Number of threads per gunicorn worker (for async workerClass)
threads: 4
## Gunircon worker class (http://docs.gunicorn.org/en/stable/settings.html#worker-class)
workerClass: 'gthread'
console_loglevel: INFO
logstash_loglevel: INFO
## Secret used as cryptographic seed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment