News for hackers. Stuff that matters.
Re:PM2: Production Process Manager with a Built-In Load Bala... by e1g on Sunday April 07, 2024 @08:29AM (#39960298)
Systemd also gives you cpu/memory limiting, file system isolation, locked down capabilities for the process, CPU affinity, can use different Node versions for different apps, etc. It removes the need for Docker for the vast majority of cases.

Systemd won’t do load balancing, but you should have nginx/caddy in front of Node anyway, and either will handle load balancing just fine.

Re:PM2: Production Process Manager with a Built-In Load Bala... by ametrau on Sunday April 07, 2024 @09:53AM (#39960786)
What about creating new processes?
Re:PM2: Production Process Manager with a Built-In Load Bala... by e1g on Sunday April 07, 2024 @10:04AM (#39960854)
Yep, systemd is an excellent and stable process runner - it can start your processes whenever, with dependencies (eg redis/pg), or on a flexible schedule etc.