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

Implement healthcheck in Django #86

Merged
merged 2 commits into from
Jun 16, 2021
Merged

Implement healthcheck in Django #86

merged 2 commits into from
Jun 16, 2021

Conversation

thekaveman
Copy link
Member

AWS ECS /healthcheck calls were going unanswered by the nginx server, and so Django was processing as Bad Request, triggering an event log into Amplitude and a bunch of unnecessary work.

But since we want the AWS healthcheck to tell us if the Django app is up and running (and by implication, nginx and gunicorn), this PR introduces an explicit Django route with a simple healthcheck reply in favor of the current setup.

we want to avoid the AWS healthcheck triggering a 400/404 in Django,
causing an event log to Amplitude
new Django healthcheck will be called by AWS
@thekaveman thekaveman added this to the June 2021 milestone Jun 16, 2021
@thekaveman thekaveman merged commit 6004a68 into dev Jun 16, 2021
@thekaveman thekaveman deleted the healthcheck branch June 16, 2021 14:42
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.

1 participant