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

Use multithreaded mode for flask. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philipn
Copy link

@philipn philipn commented Dec 8, 2015

Multi-threaded mode should be used here, even for this very simple app.
Otherwise, if someone tests this container on e.g. AWS ECS or AWS EB
with an ELB, they will see the ELB health check keep-alive request
consume the only request thread, which will cause the container to be
killed repeatedly and the user to be deeply confused.

I lost many hours trying to debug this, figuring it was a problem with
how I had ECS/EB set up, but it was actually a nit in this example app.

Multi-threaded mode should be used here, even for this very simple app.
Otherwise, if someone tests this container on e.g. AWS ECS or AWS EB
with an ELB, they will see the ELB health check keep-alive request
consume the only request thread, which will cause the container to be
killed repeatedly and the user to be deeply confused.

I lost many hours trying to debug this, figuring it was a problem with
how I had ECS/EB set up, but it was actually a nit in this example
flask app.
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