Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodejs PM2 cluster mode for load balancing

Tags:

node.js

pm2

When using pm2 cluster there's a pretty severe warning saying you shouldn't use it in production, nor for load balancing, use nginx instead. Unfortunately that's exactly how I planned to use PM2. Is it really not intended to be used for that purpose or is it just not completely ready yet?

like image 651
Harry Avatar asked Mar 15 '26 00:03

Harry


1 Answers

The nodejs cluster (0.10) has a lot of issues and is not safe to use in production! You may want to give a try with 0.11, there were some improvements.

This feature has not anything to do with pm2, it's in fact directly related to node cluster module.

like image 56
soyuka Avatar answered Mar 16 '26 13:03

soyuka