Koschei: Enable health checks (watchdog)
This commit is contained in:
parent
ef60d95e1b
commit
68348e180d
3 changed files with 19 additions and 1 deletions
|
@ -27,6 +27,8 @@ spec:
|
||||||
value: /etc/krb5.keytab
|
value: /etc/krb5.keytab
|
||||||
- name: FEDORA_MESSAGING_CONF
|
- name: FEDORA_MESSAGING_CONF
|
||||||
value: /etc/koschei/fedora-messaging.toml
|
value: /etc/koschei/fedora-messaging.toml
|
||||||
|
- name: WATCHDOG_PATH
|
||||||
|
value: /var/run/koschei-watchdog
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/koschei
|
mountPath: /etc/koschei
|
||||||
|
@ -42,6 +44,13 @@ spec:
|
||||||
limits:
|
limits:
|
||||||
cpu: "{{ max_cpu }}m"
|
cpu: "{{ max_cpu }}m"
|
||||||
memory: "{{ max_mem }}Mi"
|
memory: "{{ max_mem }}Mi"
|
||||||
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
command: ["/bin/bash", "-c", "[[ -e /var/run/koschei-watchdog ]]"]
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 5
|
||||||
|
command: ["/bin/bash", "-c", "(($(stat -c%Y /var/run/koschei-watchdog) + {{ koschei_watchdog_timeout }} > $(date +%s)))"]
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
secret:
|
secret:
|
||||||
|
|
|
@ -46,16 +46,22 @@ config = {
|
||||||
{% else %}
|
{% else %}
|
||||||
"interval": 20*60, # in seconds
|
"interval": 20*60, # in seconds
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
"watchdog": True,
|
||||||
},
|
},
|
||||||
"build_resolver": {
|
"build_resolver": {
|
||||||
"memory_limit": 1024**2, # kilobytes
|
"memory_limit": 1024**2, # kilobytes
|
||||||
|
"watchdog": True,
|
||||||
},
|
},
|
||||||
"repo_resolver": {
|
"repo_resolver": {
|
||||||
"memory_limit": 1024**2, # kilobytes
|
"memory_limit": 1024**2, # kilobytes
|
||||||
|
"watchdog": True,
|
||||||
},
|
},
|
||||||
"watcher": {
|
"watcher": {
|
||||||
"memory_limit": 256*1024, # kilobytes
|
"memory_limit": 256*1024, # kilobytes
|
||||||
"watchdog": False,
|
"watchdog": True,
|
||||||
|
},
|
||||||
|
"scheduler": {
|
||||||
|
"watchdog": True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"priorities": {
|
"priorities": {
|
||||||
|
|
|
@ -3,3 +3,6 @@ description: koschei
|
||||||
appowners:
|
appowners:
|
||||||
- mizdebsk
|
- mizdebsk
|
||||||
- msimacek
|
- msimacek
|
||||||
|
|
||||||
|
# Time in seconds after which backend pod is considered to be dead
|
||||||
|
koschei_watchdog_timeout: 120
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue