Config conf = new Config();
conf.setNumWorkers(4); // use two worker processes
topologyBuilder.setSpout("blue-spout", new BlueSpout(), 4); // set parallelism hint to 4
in the above case, I am running four process, in each process one spout is associated to that.
can I say,
topologyBuilder.setSpout("blue-spout", new BlueSpout(), 2); // set parallelism hint to 2
only two process having spout and another two process does not have it ?
what about bolt,
one process having bolt running whereas another process does not have the bolt instance running.