I installed uwsgitop and when i bench application (it is slow i added sleeps 1 req ~0.4 sec) with ab -n 10000 -c 150 I see in uwsgitop that all 10 worker are busy but new worker do not spawned. Also lq:0 always. Here is my setup as ini: [uwsgi] xml = /usr/local/etc/hnova_uwsgi.xml socket = /var/run/uwsgi_hypernova.sock socket = 127.0.0.1:8080 listen = 1024 chmod-socket = 777 workers = 10 cheaper = 40 cheaper-algo = spare pythonpath = /usr/local/lib/python2.7/site-packages module = hypernova.app pyargv = --modules-path /usr/local/hnova_modules --mode=production optimize = 2 logdate = 1 touch-logrotate = /var/run/hnova.pid log-backupname = /spool/logs/hnova/uwsgi.log.last need-app = 1 die-on-term = 1 uid = nobody gid = nobody harakiri = 10 harakiri-verbose = 1 stats = /var/run/uwsgi_stats.sock single-interpreter = 1 master = 1 vacuum = 1 daemonize = /spool/logs/hnova/uwsgi.log pidfile = /var/run/hnova.pid show-config = true ;end of configuration
2012/3/11 Roberto De Ioris <[email protected]>: > >> Hello. >> I wanted to give a try to workers: 50, cheaper: 10, but cheaper >> seems to be broken in 1.1rc. >> It is seems it always use backlog algo because when i interrupt "ab" >> there is alot of broken pipe in uwsgi log after that. >> I tried to override with cheaper-algo to no avail. >> >> > > SIGPIPEs should not be related with such behavior, they pop-up when a > request is started (by ab) but the socket got closed (because you kill ab) > while uWSGI is sending the response. When i hit ctrl+c uwsgi spitted out hundreds of sigpipe in log. like it was doing backlog queue instead of spare. I and when interruped ab he got a breath to pull out from backlog queue all queened sockets and started to process them and getting sigpipe. > By the way, if you want to test/measure cheaper usage, attach uwsgitop to > have a visual representation (the lq field on top is the listen queue, it > could be useful to make spare fine tuning) > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi -- -------------------------------------------- Турнаев Евгений Викторович +7 906 875 09 43 -------------------------------------------- _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
