> Hello, > I was wondering if someone did some benchmarking between (1) > OS-level load balancing (i.e., spawning, say, -p 10 processes and > create one nginx upstream with one uwsgi_pass entry) versus (2) > nginx-level load balancing (i.e., creating, say, 10 single-worker > processes on 10 different sockets, and let nginx do load balancing). > > I found (1) easier and cleaner, especially if special load balancing > (e.g., IP-hash) is not needed. Indeed, it's all about launching one > uwsgi master processes and let the OS do the scheduling. Also, > increasing the number of processes is as easy as modifying the > INI/XML/YML file and sending a -HUP. > > Thanks! Ciao, > -Fede
Honestly the only project (windows-compatible [like mongrel] apps a part) i have seen that prefer "user-space" load balancing is Phusion Passenger. I do not know if their decision is governed by ruby, but in my tests using the old uwsgi proxy (and trust me, it is fast as hell) kernel-level load-balancing is faster than user-space governed one. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
