Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a healthcheck to the webserver #138

Merged
merged 2 commits into from
Dec 22, 2017
Merged

Add a healthcheck to the webserver #138

merged 2 commits into from
Dec 22, 2017

Conversation

ajhodges
Copy link
Contributor

This change is to reduce downtime when the issue described in https://issues.apache.org/jira/browse/AIRFLOW-1235 is encountered. (The master gunicorn process dies but the airflow CLI does not fail or restart, resulting in a dead webserver). Currently when this condition is met, the webserver has to be manually killed or restarted.

This change will poll for the airflow-webserver pid file and the webserver container will restart if it is not present (which is the case when the gunicorn master dies)

Related to #125

This change is to reduce downtime when the issue described in https://issues.apache.org/jira/browse/AIRFLOW-1235 is encountered. (The master gunicorn process dies but the airflow CLI does not fail or restart, resulting in a dead webserver). Currently when this condition is met, the webserver has to be manually killed or restarted.

This change will poll for the airflow-webserver pid file and the webserver container will restart if it is not present (which is the case when the gunicorn master dies)

Related to #125
@puckel puckel merged commit 3cabd57 into puckel:master Dec 22, 2017
@puckel
Copy link
Owner

puckel commented Dec 22, 2017

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants