I have a cluster setup with 5 machines. I have fifty workers and the parallelism I've specified for the bolt is 5. I'm doing fieldsgrouping based on three parameters kpi, timeStamp and Application(All three in bold. For testing purposes I'm varying only the kpi value). I'm logging the thread ids in the bolts(using Thread.currentThread().getId())...I'm observing a weird behavior. The thread Id is remaining the same across all the five worker machines. Is this expected? Or there is any issue with our setup? But, I could see the thread IDs being different when I run locally. I would really appreciate if you could throw some light.
Pasting the logs from just two machines..
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---340---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---350---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---360---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---370---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---380---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi2---2012-11-12 17:00:50---390---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---290---0.6235700000000001---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---300---0.6235700000000001---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---310---0.6235700000000001---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---320---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---330---0.6235700000000002---0.037---2.877
worker-6700.log:2012-11-12 17:00:50 STDIO [INFO] ~~~~~~~~~~~~~~~~~ Thread Id: 23 app&&&&&&&&&&&&&&&&&&&&&&&&kpi3---2012-11-12 17:00:50---340---0.6235700000000002---0.037---2.877