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

feature(wsgi): pre-fork worker model module #155

Merged
merged 13 commits into from
Mar 23, 2023

Conversation

pcanto-hopeit
Copy link
Collaborator

@pcanto-hopeit pcanto-hopeit commented Mar 13, 2023

Significant performance improvements by executing hopeit_server using gunicorn in a multicore environment.

  • hopeit_server command have new --workers and --worker-class params:

    • Setting --workers=2 allows to start hopeit.engine with 2 engine workers to respond
      requests from the same port. This feature was implemented with gunicorn.
      Default value is --workers=1. Max number of workers is (cpu_count * 2) + 1.
    • To set --worker-class there are two possible options: GunicornWebWorker, GunicornUVLoopWebWorker.
      Refer to aiohttp <https://docs.aiohttp.org/en/stable/deployment.html#start-gunicorn>_
      docs for more details.
      Default value is --worker-class=GunicornWebWorker

@pcanto-hopeit pcanto-hopeit marked this pull request as ready for review March 16, 2023 19:09
engine/build/ci-test-engine.sh Outdated Show resolved Hide resolved
@leosmerling-hopeit leosmerling-hopeit merged commit 51906cc into hopeit-git:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants