Skip to content

Commit

Permalink
Speedup liveness probe for scheduler and triggerer (#20833)
Browse files Browse the repository at this point in the history
Liveness probe is submitted through `/entrypoint` which by default runs `airflow db check`.

This can be slow.

We can disable by setting `CONNECTION_CHECK_MAX_COUNT=0`.
  • Loading branch information
dstandish authored Jan 13, 2022
1 parent fe5aba2 commit 83b1e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions chart/templates/scheduler/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ spec:
periodSeconds: {{ .Values.scheduler.livenessProbe.periodSeconds }}
exec:
command:
- CONNECTION_CHECK_MAX_COUNT=0
- /entrypoint
- python
- -Wignore
Expand Down
1 change: 1 addition & 0 deletions chart/templates/triggerer/triggerer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ spec:
periodSeconds: {{ .Values.triggerer.livenessProbe.periodSeconds }}
exec:
command:
- CONNECTION_CHECK_MAX_COUNT=0
- /entrypoint
- python
- -Wignore
Expand Down

0 comments on commit 83b1e36

Please sign in to comment.