A
A
Andrey Mensky2015-11-03 03:17:25
Node.js
Andrey Mensky, 2015-11-03 03:17:25

process manager in nodejs?

Good day, the question is of an advisory nature. The task is to build a process manager on the node.js platform - start / stop and monitor consumed resources. Actually, these are the basic rudiments for the control panel. Questions that torment me:
Is it advisable to use PM2 for these purposes?
Are there viable alternatives to PM2?
Or choose the path of the Jedi - write your own solution?
- It will be a big bonus if the library can run applications from a specific user.
Thanks for your time =)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-11-03
Protko @Fesor

supervisord

A
Alexander Prozorov, 2015-11-04
@Staltec

forever

M
MasMaX, 2015-11-30
@MasMaX

I settled on Upstart. First of all, because of the convenience that the nodejs server runs on behalf of a specific user. But everyone can control this process (via sudo). Upstart will automatically restart the process in case of a crash and run it on system startup. Each Nodejs server is a separate daemon in the system.
This is the minus of PM2 - you cannot stop the process of another user even through sudo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question