the slots of storm

来源:互联网 发布:海南儋州网络诈骗 编辑:程序博客网 时间:2024/05/17 02:52

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, 感谢原作者分享。

0 0
原创粉丝点击