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

Timeouts and gunicorn configuration #190

Open
aulemahal opened this issue Jun 4, 2021 · 1 comment
Open

Timeouts and gunicorn configuration #190

aulemahal opened this issue Jun 4, 2021 · 1 comment
Labels
invalid This doesn't seem right Raven

Comments

@aulemahal
Copy link
Collaborator

Moving discussion from Ouranosinc/raven#391 to here.

Long requests cause timeouts in the current configuration of finch using gunicorn.

According to the doc (https://docs.gunicorn.org/en/latest/design.html#choosing-a-worker-type), we shouldn't be using the sync workers for "Applications making long blocking calls (Ie, external web services)", which is exactly was finch is all about.

2 solutions tried (in the gunicorn command) and resolved the timeout problem :

  • Use -t 0 to disable timeouts entirely.
  • Use -k gthread to use an asynchronous worker.

AFAIU, the timeout is still counted for async worker, but only if they are idle.

I'm not sure of the implication of either solutions.

@huard
Copy link
Collaborator

huard commented Sep 9, 2021

@cjauvin Possibly relevant to your current analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right Raven
Projects
None yet
Development

No branches or pull requests

2 participants