generated from DefangSamples/sample-RAG-chatbot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
With lazy-apps
, the first request (likely a regular user) is slow, because it causes the program to be initialized.
Line 54 in f0ed656
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--harakiri", "300", "--socket-timeout", "300", "--http-timeout", "300", "--http-keepalive", "--http-auto-chunked"] |
With lazy-apps=false
the healthcheck might not be available until ~30s later, so we need to combine this with start_period
in Compose file.
Metadata
Metadata
Assignees
Labels
No labels