Open pl-buiquang opened 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)
Solution could be to run multiple dockers with gunicorn using a single worker, and let the loadbalancing part to nginx
Branch feature/issue-1030-Fix_gunicorn_bad_worker_load_balancing created!
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)