用于负载均衡的nodejs PM2集群模式 [英] nodejs PM2 cluster mode for load balancing

查看:341
本文介绍了用于负载均衡的nodejs PM2集群模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用pm2集群时,有一个非常严重的警告,提示您不应在生产中使用它,也不要为了负载平衡而使用nginx.不幸的是,这正是我计划使用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?

推荐答案

nodejs群集(0.10)存在很多问题,在生产中不能安全使用! 您可能想尝试一下0.11,但有一些改进.

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.

此功能与pm2无关,实际上与节点群集模块.

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

这篇关于用于负载均衡的nodejs PM2集群模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆