工人之间如何共享螺栓和喷口? [英] How bolts and spouts are shared among workers?

查看:24
本文介绍了工人之间如何共享螺栓和喷口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在 Storm 集群中有 2 个 spout 和 3 个 bolt,并且有两个工作节点.将在这些工人之间共享这些喷口和螺栓(例如,第一个工人有 1 个喷口和 2 个螺栓,第二个工人有 1 个喷口和 1 个螺栓),或者每个工人有 2 个喷口和 3 个螺栓,最终有 4 个喷口和 6 个螺栓整个集群?

Let's say that I have 2 spouts and 3 bolts in Storm cluster and there are two worker nodes. Will be these spouts and bolts shared among these workers (for example first worker has 1 spout and 2 bolts, the second has 1 spout and 1 bolt) or each worker has 2 spouts and 3 bolts which ends up with 4 spouts and 6 bolts in whole cluster?

推荐答案

Spout 和 bolt 由您的所有集群(so worker)共享.

Spout and bolt are shared by all your cluster (so worker).

如果您有 2 个喷口和 3 个螺栓用于 2 个工人,它们将在您的 2 个工人之间平衡.您可以使用 ui (./nimbus ui) 将其可视化:).

If you have 2 spouts and 3 bolts for 2 workers, they will be balanced between your 2 workers. You can use the ui (./nimbus ui) to visualise that :).

这篇关于工人之间如何共享螺栓和喷口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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