Some tuning of probes and workers

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-04-17 16:48:30 +02:00
parent dae249e679
commit 464590e528
2 changed files with 5 additions and 5 deletions

View file

@ -55,16 +55,16 @@ items:
mountPath: /etc/pki/fedmsg/crt mountPath: /etc/pki/fedmsg/crt
readOnly: true readOnly: true
readinessProbe: readinessProbe:
timeoutSeconds: 1 timeoutSeconds: 10
initialDelaySeconds: 5 initialDelaySeconds: 5
httpGet: httpGet:
path: / path: /composes/
port: 8080 port: 8080
livenessProbe: livenessProbe:
timeoutSeconds: 1 timeoutSeconds: 10
initialDelaySeconds: 30 initialDelaySeconds: 30
httpGet: httpGet:
path: / path: /composes/
port: 8080 port: 8080
volumes: volumes:
- name: config-volume - name: config-volume

View file

@ -35,7 +35,7 @@ items:
RUN ln -sf /etc/keytabs/koji-keytab /etc/krb5.bodhi_bodhi{{ env_suffix }}.fedoraproject.org.keytab RUN ln -sf /etc/keytabs/koji-keytab /etc/krb5.bodhi_bodhi{{ env_suffix }}.fedoraproject.org.keytab
EXPOSE 8080 EXPOSE 8080
ENV USER=openshift ENV USER=openshift
ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- bodhiwsgi ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- --workers=10 --max-requests=10000 bodhiwsgi
type: Dockerfile type: Dockerfile
strategy: strategy:
type: Docker type: Docker