Merge "Set uwsgi worker number equal to core number on horizon"

This commit is contained in:
Zuul 2020-07-09 00:22:21 +00:00 committed by Gerrit Code Review
commit 06db737e8b
2 changed files with 7 additions and 0 deletions

View File

@ -48,3 +48,4 @@ ENV UWSGI_HTTP_SOCKET=:8000 \
UWSGI_CHECK_STATIC=/usr/local/lib/python3.7/site-packages/static/ \
UWSGI_STATIC_MAP="/static=/usr/local/lib/python3.7/site-packages/static/" \
UWSGI_MIME_FILE="/etc/mime.types"
CMD ["/usr/local/bin/uwsgi","--ini","/etc/uwsgi/uwsgi.ini"]

View File

@ -73,6 +73,8 @@ spec:
volumeMounts:
- name: config
mountPath: /etc/horizon
- name: uwsgi-config
mountPath: /etc/uwsgi
{% if 'logo' in spec %}
- name: logo
mountPath: /usr/local/lib/python3.7/site-packages/static/dashboard/img/logo.svg
@ -89,6 +91,10 @@ spec:
configMap:
defaultMode: 420
name: horizon
- name: uwsgi-config
configMap:
defaultMode: 420
name: uwsgi-default
{% if 'logo' in spec %}
- name: logo
configMap: