the slots of storm

when I submit three topology to cluster。found that one of them did not work,then asked  a  professional person  for help。in that case,each topology was spended 2 workers by default。which you can change in the code conf.setNumWorkers(1);

we gone to the web UI,found that the slots is full.that is,even though more topology was submitted to cluster,but there were no longer slots to work for them。

I checked the website:https://github.com/nathanmarz/storm/wiki/Setting-up-a-Storm-cluster

it says:5) supervisor.slots.ports: For each worker machine, you configure how many workers run on that machine with this config. Each worker uses a single port for receiving messages, and this setting defines which ports are open for use. If you define five ports here, then Storm will allocate up to five workers to run on this machine. If you define three ports, Storm will only run up to three. By default, this setting is configured to run 4 workers on the ports 6700, 6701, 6702, and 6703.

so,there are two solutions:

1)to reduce workers of the each topology

2)set the supervisor.slots.ports more when the service start


作者:Black

原文地址: the slots of storm, 感谢原作者分享。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值