[英]PM2 Cluster Mode vs. Node Cluster Performance
据我所知, PM2集群模式允许我们在一台机器上轻松扩展CPU。 它是否会创建正在扩展的节点应用程序的多个实例? 从本质上讲,与使用像Nginx这样的反向代理在不同端口上运行多个节点应用程序是一回事吗?
然后,有一个节点集群 ,它会分叉一个子进程。 与PM2群集模式相比,这种方法是否更有效,因为它运行单个节点应用程序并使用工作线程来处理传入请求?
他们基本上都这样做,PM2将使用Node Cluster,它会使事情变得更容易,因为您不必以编程方式处理代码中的分叉,只需按原样运行即可。
请注意,群集模式不支持会话粘性,因此请确保您的应用是无状态的。
[英]PM2 NodeJs Cluster Mode
[英]PM2 stop in cluster mode
[英]Node js cluster and pm2 cluster
[英]pm2 in cluster mode does not show node logs
[英]How to start node.js app with pm2 in cluster mode?
[英]pm2 cluster mode not outputting logs
[英]Configuring pm2 for cluster mode with express and nginx?
[英]Running pm2 on Elastic Beanstalk in cluster mode
[英]Cluster and Fork mode difference in PM2
[英]PM2 cluster mode Cannot find module
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.