AntaresSimulatorTeam / AntaREST

API REST and WebUI for Antares_Simulator
Apache License 2.0
12 stars 6 forks source link

Fix gunicorn bad worker load balancing #1030

Open pl-buiquang opened 2 years ago

pl-buiquang commented 2 years ago

Maybe due to the hybrid nature of the fastapi application (using a lot of sync thread instead of async ones) the load balancing of gunicorn is not good (running always on same top 4 workers)

pl-buiquang commented 1 year ago

Solution could be to run multiple dockers with gunicorn using a single worker, and let the loadbalancing part to nginx

create-issue-branch[bot] commented 1 year ago

Branch feature/issue-1030-Fix_gunicorn_bad_worker_load_balancing created!