3 ms·
nginx unit (https://unit.nginx.org/configuration/#process-management https://unit.nginx.org/configuration/#process-management) does something very similar. with
by rossmohax 6y ago
nginx unit (https://unit.nginx.org/configuration/#process-management https://unit.nginx.org/configuration/#process-management) does something very similar. with `spare = 0` config option it will start app process lazily and shutdown when idle.
There is support for Ruby, Python, PHP, Java, Node, Go runtimes.
- reddec 6y agoInteresting. Could be useful for high-load, however for quick setup feels like a little bit complicated. Are any known UI, or scheduler settings? Following is a general response for similar questions. I pretty sure it's possible to do the same thing as trusted-cgi by combining several tools: cron + nginx/nginx-unit + some deployment + stats + whatever. It could be faster, more flexible, but... I am not sure that I will personally want to setup it each time for new boxes. Or write auto-install scripts. I would like to write logic, not make environment. Benefits trusted-cgi are: low resource usage (very low), easy setup, web UI and focus on including several features in one package. It's possible to find better solutions for each parts, but I would like hear product that providing complete solution instead of providing "bricks". I am a big fan UNIX way, but sometimes we need an assembled thing, instead of another piece of constructor.
- xorcist 6y agoYou can also use socket activation in uWSGI for this, together with a reasonable value for die-on-idle. What's nice about it is that applications run unmodified. uWSGI really is the swiss army toolchain for web operations.