Workers and load balacning

Geoffrey Hartz ghartz at gehtz.com
Tue Sep 12 19:58:51 UTC 2017


Hi all!

while testing unit I noticed that for a little project in python (based on
Django) the load balacing between workers are unexpected when setting
"workers" > 1

I load benchmark with "wrk" and the following happens:
- the very first seconds I see all workers reaching 30-40% of CPU usage
- right after only one worker is at 100% CPU usage and the other ones are
iddle

The overall performance is equivalent to 1 CPU core.

For example with nginx starting with version 1.9.1 the feature "REUSE_PORT"
is available to load balance between workers, why not using this for Unit
too?

Regards,
Geoffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20170912/baad67ba/attachment.html>


More information about the unit mailing list