other Storm users:
The guidelines for setting up a storm cluster (https://github.com/nathanmarz/storm/wiki/Setting-up-a-Storm-cluster) indicate that the supervisor.slots.ports configuration property be set such that for every worker on a machine you allocate a a separate port.
My understanding is that each worker is a JVM instance that listens for commands from the nimbus controller.. So it makes sense that each one listen on a separate port.
However, there is also a method on backtype.storm.Config which seems to allow the number of workers to be defined. What if the call to setNumWorkers tries to set more workers than you have configured ports for ? That would seem to mess things up.
The only thing that makes sense to me is that the yaml configuration defines the upper bound on number of workers.. Each topology may request some workers be allocated to it. But if I submitted two topologies (to some particular cluster), each making the call Config.setNumWorkers(2), then I had better have four ports configured.
Is this the right idea ?
Thanks in advance .. -chris