kPate
January 31, 2022, 6:48pm
1
I want to run NodeJS app on Google Cloud Run, is it beneficial to use PM2
(Process Manager 2)?
PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.
davidH
January 31, 2022, 8:46pm
2
No, that functionality is built in to Cloud Run itself
davidH
January 31, 2022, 10:16pm
3
Also even off cloud run its built into everything else
davidH
January 31, 2022, 11:15pm
4
PM2 has been obsolete for about 10 years now
kPate
January 31, 2022, 11:44pm
5
PM2 has been obsolete???!!! I found it out through the NodeJS documentation, how can it be obsolete?
kPate
February 1, 2022, 12:32am
6
Thanks for the answers though!
davidH
February 1, 2022, 12:57am
7
In days long past, service management wasn’t well standardized on Linux so people wrote tools to help with it
davidH
February 1, 2022, 1:15am
8
Runit, PM2, Supervisord, etc
davidH
February 1, 2022, 2:26am
9
But since then systemd has entirely standardized everything and comes with a full suite of daemon management tools.
davidH
February 1, 2022, 3:54am
10
Some people just don’t like systemd
davidH
February 1, 2022, 4:01am
11
Which … fair, but it’s not going anywhere
davidH
February 1, 2022, 6:02am
12
And then stuff like Kubernetes or Nomad makes this completely moot
kPate
February 1, 2022, 7:22am
13
Oh, okay… Thanks for the detailed explanation