Hello:
As look into source code, I found it's easy to get what main, controller, router, app do. But i'm wondering what worker, discovery for ? or what it would do.
734819342(a)qq.com
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