|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Multiple bar instance and thread racing issue |
« View previous topic :: View next topic » |
Author |
Message
|
jzhang2007 |
Posted: Mon Apr 30, 2007 6:29 am Post subject: Multiple bar instance and thread racing issue |
|
|
Newbie
Joined: 13 Apr 2007 Posts: 7
|
I have a flow that dose inserts and updates. The insert should happen before update. In order to enhance the performace, I added number of additional instaces for this bar file. However, since this is the multiple thread (multiple instance) case, the racing condition occurs. Sometimes the updates go before inserts, which I don't want to see this happen. I have to reduce the instance to only one but then I lost the chance for better performance. Am I missing something? Any suggestion?
Thanks,
J |
|
Back to top |
|
 |
Lisa |
Posted: Mon Apr 30, 2007 6:35 am Post subject: |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
On the MQInput node in the insert message flow, change the Order mode to By Queue Order. This will enforce signle threading only for this flow.
Once you add additional threads to the BAR file, the Update flow will get them all.
This may not help your insert, update order problem, but it will make sure that all additonal threads are given to the Update message flow.
Thanks, Lisa |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Apr 30, 2007 6:48 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
EddieA |
Posted: Mon Apr 30, 2007 12:03 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Are you saying that the inserts/updates within one flow, from a single message are out of sequence. Do you have 2 outgoing connections from a single node. The order is not guaranteed, unless you use the FlowOrder.
If it is seperate messages for insert and update, then having multiple flows will not work with multiple threads, as you cannot guarantee the scheduling of the threads.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|