top | item 39959734

(no title)

Kharacternyk | 1 year ago

I don't think systemd has a built-in load balancer. Also, running multiple copies of the same service isn't typical PID-1 stuff, so maybe doing that with systemd involves some friction.

discuss

order

stephenr|1 year ago

Running multiple "copies" of a service is very much in systemd's wheelhouse; it's called templated units.

Kharacternyk|1 year ago

I know about templates, but I don't believe they are designed for fungible copies. You can run a bunch of my-app@a-random-port.service, but it's not the same UX as `pm2 start my-app -i number-of-copies`.