C
C
CrazyHorse2018-01-19 13:51:05
Node.js
CrazyHorse, 2018-01-19 13:51:05

Need to use process managers for node.js when using kubernetes?

Tell me, do I need to use any of the process managers (pm2, forever...) for an application that will contain a web api on express and a task scheduler on agenda, if Kubernetes manages the application life cycle? i.e. when the application crashes, as I understand it, Kubernetes will start the container with the application on a new one, and therefore it is possible to do without a process manager for the node.js application?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rino906, 2018-01-20
@CrazyHorse

k8s will restart the pod in case of a crash, pm2 and the like are better not to use just because when using them there is an additional monitoring issue (for example, the number of application crashes)

W
Wimbo, 2018-01-20
@Wimbo

pm2/forever makes no sense to use.
A separate container, but rather under, for the web api, since it can be scaled.
And agenda most likely cannot be launched more than 1, just 1 container is separate. In general, there is a CronJob in kubernetes for this :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question