> I have uwsgi configured in emperor mode, one of my vassals is running four
> processes with 20 threads each. I've noticed from my logs that uwsgi
> seems
> to throw most of the requests to the master process rather than
> distributing them equally. Is this expected behavior? Is there any way
> to
> force uwsgi to use each process equally?
> _______________________________________________
The kernel choose the process to 'wakeup' following various rules. The
choice made by the kernel should grant best performance. If for some
reason you want
to get control over workers usage, you have to map a socket to each worker
and configure your webserver to 'roundrobin' request to the various
socket.
For example:
[uwsgi]
processes = 3
socket = :3031
socket = :3032
socket = :3033
map-socket = 0:1
map-socket = 1:2
map-socket = 2:3
Then in nginx:
upstream uwsgicluster {
server 127.0.0.1:3031;
server 127.0.0.1:3032;
server 127.0.0.1:3033;
}
uwsgi_pass uwsgicluster;
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi