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

Gunicorn Worker similar to Meinheld #8

Open
viig99 opened this issue Dec 17, 2021 · 1 comment
Open

Gunicorn Worker similar to Meinheld #8

viig99 opened this issue Dec 17, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@viig99
Copy link

viig99 commented Dec 17, 2021

Is there a way to create a Gunicorn worker similar to what meinheld has done?
https://github.com/mopemope/meinheld/blob/master/meinheld/gmeinheld.py#L11

It can be used as:
gunicorn --workers=2 --worker-class="egg:meinheld#gunicorn_worker" gunicorn_test:app

  • Falcon + Meinheld benchmarks
Running 1m test @ http://localhost:5000
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.66ms  103.47us   8.59ms   79.39%
    Req/Sec     7.26k   600.67    42.37k    95.17%
  Latency Distribution
     50%    1.68ms
     75%    1.73ms
     90%    1.75ms
     99%    1.84ms
  3468906 requests in 1.00m, 588.86MB read
Requests/sec:  57719.43
Transfer/sec:      9.80MB
  • Falcon + fastwsgi bechmarks
Running 1m test @ http://localhost:5000
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.41ms   95.10us   3.54ms   67.27%
    Req/Sec     8.57k   532.54    15.80k    66.10%
  Latency Distribution
     50%    1.46ms
     75%    1.48ms
     90%    1.49ms
     99%    1.58ms
  4093388 requests in 1.00m, 456.74MB read
Requests/sec:  68187.13
Transfer/sec:      7.61MB

Having a gunicorn worker for fastwsgi might help people test it out in their own production workload easily.

Note: Seeing 18% improvement over meinheld albeit on hello world benchmarks for cythonized falcon.

@viig99 viig99 changed the title Gunicorn Worker Gunicorn Worker similar to Meinheld Dec 17, 2021
@jamesroberts
Copy link
Owner

There might be a way...

I would have to look into this a bit more. I would also accept a PR.

Thanks for opening this issue though, this could be a really nice feature to add to FastWSGI

@jamesroberts jamesroberts added the enhancement New feature or request label Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants