ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple bar instance and thread racing issue

Post new topic  Reply to topic
 Multiple bar instance and thread racing issue « View previous topic :: View next topic » 
Author Message
jzhang2007
PostPosted: Mon Apr 30, 2007 6:29 am    Post subject: Multiple bar instance and thread racing issue Reply with quote

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
View user's profile Send private message
Lisa
PostPosted: Mon Apr 30, 2007 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
marcin.kasinski
PostPosted: Mon Apr 30, 2007 6:48 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Maybe it will help you:

http://www.mqseries.net/phpBB2/viewtopic.php?t=36377
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
EddieA
PostPosted: Mon Apr 30, 2007 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple bar instance and thread racing issue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.