Title: Worse performance with high async threads and ugreen


when I use this string, to start uwsgi server:


uwsgi --socket /tmp/uwsgi.sock -L --processes 1 --async 100 --ugreen -l 2048 -C --master --module worker -H /srv/virtualenvs/test/  


and run after that this test ab -c 15 -n 10000 http://test.dev/


I have:

Requests per second:    1187.64 [#/sec] (mean)

Time per request:       12.630 [ms] (mean)



If I will change  --async 100 to  --async 1000

Requests per second:    627.49 [#/sec] (mean)

Time per request:       23.905 [ms] (mean)



If I will change  --async 1000 to  --async 10000

Requests per second:    13.90 [#/sec] (mean)

Time per request:       1079.050 [ms] (mean)


Application is just simple psycogreen_green application who sends 3 select requests to postgresql using psycopg2.pool, postgresql not overloaded at all - just idle, you remember during this test I didn't change ab args, only async value.




_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to