diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-06-30 22:52:52 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-06-30 22:52:52 +0200 |
| commit | 7501a1d6c20581312eb37de883ab52e83e27c8fa (patch) | |
| tree | 5d95b121903394f6674aaece729a876fa3b8367f /checker/src/gunicorn.conf.py | |
| parent | 0a00d31fa19062511e1208d1c037787476497e2f (diff) | |
| download | enowars5-service-stldoctor-7501a1d6c20581312eb37de883ab52e83e27c8fa.tar.gz enowars5-service-stldoctor-7501a1d6c20581312eb37de883ab52e83e27c8fa.zip | |
refactor for enochecker3
Diffstat (limited to 'checker/src/gunicorn.conf.py')
| -rw-r--r-- | checker/src/gunicorn.conf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checker/src/gunicorn.conf.py b/checker/src/gunicorn.conf.py index 095073e..159bc51 100644 --- a/checker/src/gunicorn.conf.py +++ b/checker/src/gunicorn.conf.py @@ -1,7 +1,7 @@ import multiprocessing -worker_class = "eventlet" -workers = multiprocessing.cpu_count() * 2 + 1 +worker_class = "uvicorn.workers.UvicornWorker" +workers = min(4, multiprocessing.cpu_count()) bind = "0.0.0.0:3031" timeout = 90 keepalive = 3600 |
