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 » Clustering » Load balancing

Post new topic  Reply to topic
 Load balancing « View previous topic :: View next topic » 
Author Message
Laks
PostPosted: Fri Nov 25, 2005 5:30 pm    Post subject: Load balancing Reply with quote

Newbie

Joined: 25 Nov 2005
Posts: 6

Is there a way in MQ queuemanager were i can automatically start posting messgaes to Q-2 if Q-1 is overloaded or the destination of Q1 is slow in reading the messages.

Thanks..
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Nov 25, 2005 6:30 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Not without writing your own exit, no.

But how are you going to know that Q1 is overloaded. Especially from a remote system.

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
Laks
PostPosted: Sat Nov 26, 2005 9:44 pm    Post subject: Reply with quote

Newbie

Joined: 25 Nov 2005
Posts: 6

Say if the queue depth of Q-1 is increasing stedily i will consider my queue is getting overloaded...


ur thoughts..

Thanks
Back to top
View user's profile Send private message
EddieA
PostPosted: Sat Nov 26, 2005 11:33 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Laks wrote:
Say if the queue depth of Q-1 is increasing stedily i will consider my queue is getting overloaded...


ur thoughts..

Thanks

Yeah, but how are you going to know that. By using even more MQ calls that will overload the system even more. And are you going to do this over a network for remote systems as well.

And all of this from an exit.

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
hopsala
PostPosted: Sat Nov 26, 2005 11:53 pm    Post subject: Re: Load balancing Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Laks wrote:
Is there a way in MQ queuemanager were i can automatically start posting messgaes to Q-2 if Q-1 is overloaded or the destination of Q1 is slow in reading the messages.

Eddie's right, but that's not your solution anyway: The way to go about it is improve performance or run another instance of the receiving application. Calculate/Estimate your max throughput, double it to make sure, and design your application logic and WMQ environment to fit the requirements. No need for another queue, WMQ can take the heat, it's usually the application or some tuneable parm that's at fault; and as said, you can dynamically raise as many instances as you wish.

See Question on queue design for high volumne for all the performance tips you need. For info on how one dynamicallys start more than one instance look up events, specifically performance events (service and depth).
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sun Nov 27, 2005 11:40 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

To rephrase what hopsala said: If Q1 and Q2 are getting equal # of messages, but one of the 2 queues is backing up, don't attack the problem by sending less messages there. Attack the problem by finding out why this q is being drained slower than that one.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Nov 27, 2005 10:43 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And in order to load balance you might add an event listener and set the queue instance to put disabled if the queue depth goes over x % and reenable it if it drops under y%. In a clustered instance this would automatically redirect the messages to the other instances. Of course if all your instances can't handle the traffic you're in deep.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » Load balancing
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.