[core] adaptive spawning for socket backend procs (fixes #1162)
commitd66cbe9577ac092163babe6b816205fd14f1bc5a
authorGlenn Strauss <gstrauss@gluelogic.com>
Sun, 16 Jul 2017 04:13:37 +0000 (16 00:13 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sun, 23 Jul 2017 23:02:30 +0000 (23 19:02 -0400)
tree9da17c0f2ad8d67a6fbbcc9af07d8d36f3a43d55
parent1836309209e1bc4268df02b7aaf06d2e89329581
[core] adaptive spawning for socket backend procs (fixes #1162)

*experimental*

enable adaptive spawning for socket backend processes

new feature will allow "min-procs" => "0" and will spawn a backend
upon receipt of a request, if no backends are currently running.
This may be useful on resource-limited systems where there is a
seldom-used resource-intensive backend, such as home router
configuration web pages.  The first request may be slower as the
backend is starting up, but then subsequent requests within
"idle-timeout" will hit the (temporarily) persistent backend for
faster responses.

x-ref:
  "Adaptive spawning with min-procs=>0"
  https://redmine.lighttpd.net/issues/1162
src/gw_backend.c