Tag: shutdown
All the articles with the tag "shutdown".
Graceful shutdown NodeJS HTTP server when using PM2
So you have created a NodeJS server that receives tons of requests and you are really happy but, as every piece of software, you found a bug or add a new feature to it. It is clear you will need toβ¦
Using PM2 to manage NodeJS cluster
The cluster module allows us to create worker processes to improve our NodeJS applications performance. This is specially important in web applications, where a master process receives all theβ¦
Using cluster module with HTTP servers
The cluster module allow us improve performance of our application in multicore CPU systems. This is specially important no matter if working on an APIs or an, i.e. ExpressJS based, web servers, whatβ¦
Understanding the NodeJS cluster module
NodeJS processes runs on a single process, which means it does not take advantage from multi-core systems by default. If you have an 8 core CPU and run a NodeJS program via $ node app.js it will runβ¦