|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Please help an MQ newbie - need to setup MQ load balancing |
« View previous topic :: View next topic » |
Author |
Message
|
jstefano |
Posted: Thu Apr 13, 2006 10:40 am Post subject: Please help an MQ newbie - need to setup MQ load balancing |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Apr 13, 2006 10:52 am Post subject: |
|
|
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 |
|
 |
Anirud |
Posted: Thu Apr 13, 2006 1:04 pm Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
|
Back to top |
|
 |
mdl64 |
Posted: Wed Apr 19, 2006 9:32 am Post subject: workload balancing |
|
|
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 |
|
 |
jstefano |
Posted: Fri May 05, 2006 8:51 am Post subject: |
|
|
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 |
|
 |
jstefano |
Posted: Fri May 05, 2006 8:53 am Post subject: Re: workload balancing |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|