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 » Please help an MQ newbie - need to setup MQ load balancing

Post new topic  Reply to topic
 Please help an MQ newbie - need to setup MQ load balancing « View previous topic :: View next topic » 
Author Message
jstefano
PostPosted: Thu Apr 13, 2006 10:40 am    Post subject: Please help an MQ newbie - need to setup MQ load balancing Reply with quote

Apprentice

Joined: 13 Apr 2006
Posts: 48

Hi MQ gurus!

Would you be so kind and help us with the following task?
We have 3 servers (Server1, 2, 3) (AIX) which are supposed to talk to another 2 servers (ServerA, B) using MQ, how to do that?
Our idea is this:

Server1
ServerA
Server2
ServerB
Server3

Server1 has to send MQ message to serverA and has to receive it back. When ServerA is busy, MQ message should go to SeverB and receive response back. The same for Server2 and Server3 . Some kind of a load balancing. Is there any document how to setup this? We may have another machine between Server1,2,3 and ServerA,B running MQ Manager... Any help will be greatly appreciated!!!

Million thanks in advance!

Jan
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 13, 2006 10:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQ Clustering will distribute messages between all available instances of a particular queue that are shared in a cluster.

This may or may not reflect that "serverA is busy", or etc.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Anirud
PostPosted: Thu Apr 13, 2006 1:04 pm    Post subject: Reply with quote

Master

Joined: 12 Feb 2004
Posts: 285
Location: Vermont

Check the WebSpher MQ Queue Manager Clusters document for more details on Workload Balancing.
Back to top
View user's profile Send private message Visit poster's website
mdl64
PostPosted: Wed Apr 19, 2006 9:32 am    Post subject: workload balancing Reply with quote

Newbie

Joined: 19 Apr 2006
Posts: 1

My main question from your posting is "What does 'busy' mean?"

There are a handful of things you can do internally to MQ to alter the direction that messages flow. There are also a few things that an application programmer can control. However, if your definition of 'busy' means that CPU is in excess of 90% or say you are receiving queue service time alarms, there isn't a lot that MQ can do straight out of the box to redirect traffic.

The workload algorithm is located at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzah.doc/cwlma.htm

Once you define what 'busy' means to you, you could try changing the priorities of the cluster channels. If you do that, though, you would need to develop a piece of automation that would decrease the priority once the server is 'busy' and increase the priority on another channel on a different server. You would then need to determine when the original server isn't 'busy' and switch everything back. Doing this could lead to a lot of thrashing so you would also need to put some safeguards into your algorithms.

All of this is pretty complex work and it is pretty risky. It would be much more straightforward if you set each server up with consistent definitions and let MQ's round-robin algorithm kick in.
Back to top
View user's profile Send private message
jstefano
PostPosted: Fri May 05, 2006 8:51 am    Post subject: Reply with quote

Apprentice

Joined: 13 Apr 2006
Posts: 48

jefflowrey wrote:
MQ Clustering will distribute messages between all available instances of a particular queue that are shared in a cluster.

This may or may not reflect that "serverA is busy", or etc.


Hi there!

Thank you very much for your answer!

Thanks a million!

Jan
Back to top
View user's profile Send private message
jstefano
PostPosted: Fri May 05, 2006 8:53 am    Post subject: Re: workload balancing Reply with quote

Apprentice

Joined: 13 Apr 2006
Posts: 48

mdl64 wrote:
My main question from your posting is "What does 'busy' mean?"

There are a handful of things you can do internally to MQ to alter the direction that messages flow. There are also a few things that an application programmer can control. However, if your definition of 'busy' means that CPU is in excess of 90% or say you are receiving queue service time alarms, there isn't a lot that MQ can do straight out of the box to redirect traffic.

The workload algorithm is located at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzah.doc/cwlma.htm

Once you define what 'busy' means to you, you could try changing the priorities of the cluster channels. If you do that, though, you would need to develop a piece of automation that would decrease the priority once the server is 'busy' and increase the priority on another channel on a different server. You would then need to determine when the original server isn't 'busy' and switch everything back. Doing this could lead to a lot of thrashing so you would also need to put some safeguards into your algorithms.

All of this is pretty complex work and it is pretty risky. It would be much more straightforward if you set each server up with consistent definitions and let MQ's round-robin algorithm kick in.


Hi there!

Thank you very much for your answer!

Thanks a million!

Jan
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 » Clustering » Please help an MQ newbie - need to setup MQ 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.