unbit/uwsgi — pull request #109 by prymitive (2013-01-03 10:51:30+00:00)
Title: spawn new workers if backlog is > 0 for some time

With this patch cheaper busyness algo will check if backlog is > 0 for too long, if so it will spawn additional worker(s).
This patch tries to address this case:

* user starts app with 2 workers (cheaper=2, workers=16)
* app gets to "heavy" requests that take long time to process
* until at least one of those requests is finished all new requests will be kept in backlog
* depending on how user configured busyness algo it is possible that if requests in backlog are there for too long they might get timed out