【问题标题】:What's the difference between Node.js' Cluster module and Learnboost's Cluster module?Node.js 的 Cluster 模块和 Learnboost 的 Cluster 模块有什么区别?
【发布时间】:2013-09-26 18:00:17
【问题描述】:

Node.js 本身有一个名为 Cluster 的核心模块(参考:http://nodejs.org/docs/v0.8.3/api/cluster.html),Learnboost 发布了一个也称为 Cluster 的模块(参考:http://learnboost.github.com/cluster/https://github.com/LearnBoost/cluster)。

这两者如何比较?它们是否有某种关联?

【问题讨论】:

  • 核心集群模块在 .4 版本左右从节点中移除,最近才在 .8 版本中重新添加。同时创建 LearnBoost 版本可能是为了填补空白。不幸的是,我不确定它们实际上是如何比较的。

标签: javascript node.js cluster-computing npm


【解决方案1】:

Nick Hagianis 已经说过了,node.js 的集群模块暂时被移除了。据我所知,LearnBoost 集群模块不再积极开发。 LearnBoost 模块的问题列表很长。

LearnBoost 模块具有一些内部模块不提供的零停机重启功能。但我不确定它是否仍然适用于当前(0.8.x)版本的节点。如果您需要类似的功能,可以查看Forever 工具。

【讨论】:

    【解决方案2】:

    cluster module 现在已重新添加到核心模块集中。

    【讨论】:

      猜你喜欢
      • 2016-07-01
      • 2020-08-20
      • 1970-01-01
      • 2022-12-03
      • 2015-11-25
      • 2014-12-13
      • 2020-03-12
      • 2011-01-23
      • 2023-03-28
      相关资源
      最近更新 更多