|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Load balancing across a Pub/Sub Cluster |
« View previous topic :: View next topic » |
Author |
Message
|
michaelod |
Posted: Wed Mar 09, 2016 8:38 am Post subject: Load balancing across a Pub/Sub Cluster |
|
|
Newbie
Joined: 09 Mar 2016 Posts: 2
|
Hi,
I have 3 queue managers set up in a Pub/ Sub Cluster.
There is an application on QM A host that puts messages to a clustered topic on QM B.
The messages published to the topic on B are picked up by a subscription and ultimately consumed by an events processor.
There is an identical subscription set up on QM C along with another instance of the events processor. This means that messages are duplicated.
We can stop this by disabling the events processor on QM C meaning that we have a single point of failure,
We are looking for a way of load balancing the messages across the 2 QM's so that they are only consumed by 1 events processor.
Is this possible? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 09, 2016 8:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you only want one copy of a published message, you can only have one subscriber. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
michaelod |
Posted: Wed Mar 09, 2016 8:52 am Post subject: |
|
|
Newbie
Joined: 09 Mar 2016 Posts: 2
|
mqjeff wrote: |
If you only want one copy of a published message, you can only have one subscriber. |
Yes I know that.
We have cloned queue managers for High Availibilty purposes.
I was just wondering whether it was possible to balance the load.
E.g. if QM B goes down for any reason, then the events processor on QM C would be able to consume the messages. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 09, 2016 8:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
It is possible to balance the load. However you end up consuming a queue and not a topic. You will need a subscription that involves the cluster alias as destination queue manager, and a clustered queue as destination... and more likely than not an administrative subscription!
Remember that with load balancing, there is a good chance of messages being out of sequence, should that matter. Also you will have to run a consumer on each qmgr hosting the destination queue to consume the full set of messages.
With only 3 qmgrs in the mix, not much incentive to use the selective pub/sub with cluster routing...
Have fun  _________________ MQ & Broker admin |
|
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
|
|
|
|