6 ms·
YHat and Domino Data Labs both have commercial solutions for exactly this. On the open-source front, OpenCPU (https://www.opencpu.org/ https://www.opencpu.org/
by trestletech 11y ago
YHat and Domino Data Labs both have commercial solutions for exactly this.
On the open-source front, OpenCPU (https://www.opencpu.org/ https://www.opencpu.org/), Jug (http://bart6114.github.io/jug/ http://bart6114.github.io/jug/) or plumber (http://plumber.trestletech.com/ http://plumber.trestletech.com/) are all built for this. Plumber has a page to guide you through setting it up on a server using PM2 here: http://plumber.trestletech.com/docs/hosting/ http://plumber.trestletech.com/docs/hosting/
(Conflict of interest warning: I wrote plumber.)
I've been running an API on plumber (with admittedly low volumes of traffic) for months now unattended using a strategy similar to the guide mentioned above. Haven't had any issues yet.
- sandGorgon 11y agoVery cool! How do you manage this in production? We use supervisors for other services. Is plumber aware of USR1, SIGHUP,etc signals to trigger restarts,etc