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

Commits on Dec 8, 2015

  1. Use multithreaded mode for flask.

    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.
    philipn committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    3aa5553 View commit details
    Browse the repository at this point in the history