Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Startup priorities / delayed start #3685

Open
neophob opened this issue May 24, 2018 · 4 comments
Open

Feature Request: Startup priorities / delayed start #3685

neophob opened this issue May 24, 2018 · 4 comments

Comments

@neophob
Copy link

neophob commented May 24, 2018

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:

  • add a bootdelayMs option, this (static) delay is applied the first time the application is started. might be the easiest to implement
  • bootstrapCap option, this setting defined that maximal bootstrapCap processes are allowed to be started. might need another option to define the priority (bootstrapPrio)

any other ideas how to improve the startup processes?

@ksugiarto
Copy link

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

@intensite
Copy link

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
Copy link

me too

@zackees
Copy link

zackees commented Feb 14, 2024

I too needed this feature a bunch of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants