Skip to content

Set lazy-apps=false #89

@lionello

Description

@lionello

With lazy-apps, the first request (likely a regular user) is slow, because it causes the program to be initialized.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions