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 » General Discussion » Load balancing across a Pub/Sub Cluster

Post new topic  Reply to topic
 Load balancing across a Pub/Sub Cluster « View previous topic :: View next topic » 
Author Message
michaelod
PostPosted: Wed Mar 09, 2016 8:38 am    Post subject: Load balancing across a Pub/Sub Cluster Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 09, 2016 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
michaelod
PostPosted: Wed Mar 09, 2016 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 09, 2016 8:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20698
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
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 » General Discussion » Load balancing across a Pub/Sub Cluster
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.