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

你可能感兴趣的:(the slots of storm)