Reputation: 5228
I am using Sync Workers of Gunicorn with 4 workers running.. Lets say 100 request hit the server at same time.. How does gunicorn handle this, Does all 4 workers have 25 requests each Or master worker maintains the queue and sends the requests to child worker based on their availability ?
Upvotes: 2
Views: 913
Reputation: 5228
From Benoitc(main contributor in Gunicorn):
The worker doesn't maintain any queue. Everything arrive in the backlog of the listener, the system balance the connection to the processes that wait on accept.
Upvotes: 1