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

Investigate alternatives to gunicorn settings in REST API #3913

Closed
Tracked by #3755
bogdankostic opened this issue Jan 23, 2023 · 1 comment · Fixed by #4304
Closed
Tracked by #3755

Investigate alternatives to gunicorn settings in REST API #3913

bogdankostic opened this issue Jan 23, 2023 · 1 comment · Fixed by #4304
Assignees
Labels
P1 High priority, add to the next sprint topic:rest_api type:enhancement

Comments

@bogdankostic
Copy link
Contributor

We run the REST API server using the following command:
gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180

We suspect that changing the settings could help us make the application more robust and efficient.

@bogdankostic
Copy link
Contributor Author

As we're currently using a single uvicorn worker, there's no need to use a gunicorn server as the process manager - we can directly use uvicorn as suggested in the FastAPI Docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority, add to the next sprint topic:rest_api type:enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants