Andrew, when you connect your bolt to your spout you specify the grouping. If you use shuffle grouping then any free bolt gets the tuple - in my experience even in lightly loaded topologies the distribution amongst bolts is pretty even. If you use all grouping then all bolts receive a copy of the tuple. Use shuffle grouping and each of your bolts will get about 1/3 of the workload.
Tomas On Wed, Jul 16, 2014 at 7:05 PM, Andrew Xor <[email protected]> wrote: > H > i, > > I am trying to distribute the spout output to it's subscribed bolts > evenly; let's say that I have a spout that emits tuples and three bolts > that are subscribed to it. I want each of the three bolts to receive 1/3 > rth of the output (or emit a tuple to each one of these bolts in turns). > Unfortunately as far as I understand all bolts will receive all of the > emitted tuples of that particular spout regardless of the grouping defined > (as grouping from my understanding is for bolt *tasks* not actual bolts). > > I've searched a bit and I can't seem to find a way to accomplish that... > is there a way to do that or I am searching in vain? > > Thanks. > -- Tomas Mazukna 678-557-3834
