Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.53k stars 2.62k forks source link

Feature Request: Startup priorities / delayed start #3685

Open neophob opened 6 years ago

neophob commented 6 years ago

Thanks for pm2! really like it, but I miss one feature:

Think about your low end device starts 4 microservices as soon the device is started. starting a node application might be resource intense (parsing node_modules) - so the startup is not really deterministic - but you might want microservice#1 is started before all other microservices.

I have some ideas how to resolve this:

any other ideas how to improve the startup processes?

ksugiarto commented 6 years ago

I need this feature as well. And this is important for several cases

intensite commented 6 years ago

We would need this as well !!

We have an IoT application running 4 micro-services on a RaspberryPi. 3 out of the four micro-services requires the first one to be started and operational. The problem is that some of those may start before service number one startup is completed.

As the original poster suggested, some kind of delayed start or a startup priority would be a great addition to this amazing program :-)

sdancer75 commented 3 years ago

me too

zackees commented 8 months ago

I too needed this feature a bunch of times.