Thanks Arun for the clarification. A follow up question on the same when Increasing/Decreasing the Parallelism of a Bolt. If I use field grouping on some ID field and I track state in Bolt for that ID, after a parallelism increase, it is possible to have the state maintained in a different bolt instance right ?
Any suggestion on handling such cases ? Thanks, Jins George On Mon, Jul 18, 2016 at 9:17 PM, Arun Mahadevan <[email protected]> wrote: > Each bolt instance (task) has its own state, so in your case each of the 5 > instances would have its own state. All these state instances could be in a > same underlying storage instance (e.g. same Redis cluster). > > > > Thanks, > > Arun > > > > > > > > *From: *Jins George <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Tuesday, July 19, 2016 at 4:04 AM > *To: *"[email protected]" <[email protected]> > *Subject: *Question on Storm 1.0 State Management > > > > Hello Group, > > I have a question on the implementation of State management in Storm(Storm > 1.0 - IStatefulBolt) . Is the sate is shared across instances of same > Bolt ? > > Say I have a bolt with parallelism as 5, Does each bolt instance have > its own copy of State or there is only one State which is shared across 5 > instances of bolts > > > Thanks, > Jins George > -- Thanks, Jins George
