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 IBM MQ Support » MQ V7 pub/sub cluster

Post new topic  Reply to topic
 MQ V7 pub/sub cluster « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Tue Apr 08, 2014 12:05 pm    Post subject: MQ V7 pub/sub cluster Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I just started reading on the enhancement of V7 of PUB/SUB with MQ cluster.
I have a quick question on the distribution of the publication. Say a subscriber subscribe to topic A and specify a Q of MYQ to receive publication.
If MYQ is a cluster Q in a cluster of 5 QMGRs. Will the publications be send to MYQ on the 5 Qmgrs in round robin (default cluster logic for mqput) or 5 copies of each publication messages will be sent each to the Q MYQ on each QMGR ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 08, 2014 1:17 pm    Post subject: Re: MQ V7 pub/sub cluster Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

KIT_INC wrote:
Say a subscriber subscribe to topic A and specify a Q of MYQ to receive publication


Does the subscriber specify a queue manager when it identifies the queue which will receive the publications?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Tue Apr 08, 2014 7:04 pm    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Quote:
Does the subscriber specify a queue manager when it identifies the queue which will receive the publications


If it does, then will there be only 1 publication going to the QMGR specified ?
If not, will there be 5 messages each going to the Q on each of the 5 cluster QMGR ?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 09, 2014 3:26 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

KIT_INC wrote:

If it does, then will there be only 1 publication going to the QMGR specified ?

Correct.

KIT_INC wrote:

If not, will there be 5 messages each going to the Q on each of the 5 cluster QMGR ?

Just ONE message is being produced to match the ONE subscription, which will be load balanced to ONE of the queues.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 09, 2014 5:17 am    Post subject: Reply with quote

Grand High Poobah

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

Don't know how you do it without setting the qmgr. I had to use a CLUSTER ALIAS to get it to load balance...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Apr 09, 2014 5:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
Don't know how you do it without setting the qmgr. I had to use a CLUSTER ALIAS to get it to load balance...


So did I. Hence my deliberately leading question.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 09, 2014 6:56 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

I'm just a bit confused... load balancing to one subscriber on one qmgr one topic? I'd say there needs to be subscribers > 1 to observe load balancing. Or have I missed something...
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Apr 09, 2014 7:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
I'm just a bit confused... load balancing to one subscriber on one qmgr one topic? I'd say there needs to be subscribers > 1 to observe load balancing. Or have I missed something...


1 published message which is processed by 1 - n applications to meet an SLA.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 09, 2014 8:20 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

So, this cluster, and this qmgr, support other apps than pub/sub? And, the effort is to load-balance for this 1 subscriber?

To help with SLAs, V7 brought a new cluster load-balancing algorithm. Why is the OP focused on round-robin?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Wed Apr 09, 2014 9:55 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

what I like to find out if I can benefit from the new V7 pub/sub enhancement which works with MQ clustering.
I have a cluster with 5 Qmgrs (QM1 to QM5) and I want my application to run in all 5 and MQGET from IN queue which is a cluster Q.
With regular application I can MQPUT to IN and messages will be round robin between the 5 Qmgrs and I am happy.
If instead of MQPUT using application to IN queue, I want to use pub/sub. So I subscript to a top and ask the publication to be send to IN queue. I am not familiar with pub/sub that's why I start reading.
If subscription required a Qmgr name, it means that I need to send 5 subscriptions each with Qmgr name of QM1, QM2..QM5 and queue name IN.
Then I'll get a copy of the publication , one on each Qmgr. Am I right ?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 09, 2014 10:08 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

KIT_INC wrote:
what I like to find out if I can benefit from the new V7 pub/sub enhancement which works with MQ clustering.

What problem are you addressing? What benefit exactly are you looking for? How will you measure the benefit?

KIT_INC wrote:
If subscription required a Qmgr name, it means that I need to send 5 subscriptions each with Qmgr name of QM1, QM2..QM5 and queue name IN. Then I'll get a copy of the publication , one on each Qmgr. Am I right ?

Subscriptions do not need to, and usually don't specify a qmgr. An objective of pub/sub is to eliminate publishers and subscribers from having to know anything about each other and the underlying topology.

The new v7 cluster attributes give you great flexibility in how messages are routed (workload balanced) around the cluster.

"Benefit" is far too abstract. Every benefit has an associated cost. Please be be more precise as to your objective.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 09, 2014 12:01 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Subscribtions usually do have a QM name assocciated with them, even if its usually an implied "This QM here that I am connected to as I make this subscription".

So if you want your messages to go to a particular QM, specify it.
If you need 5 copies of the message to go to 5 specific QMs, yup, make 5 subscriptions, each specifying a different QM.
If you only need 1 copy and you don't care which of the 5 it goes to, don't specify the QM, or specify the QM and make sure the queue object there allows load balance to other instances.
_________________
Peter Potkay
Keep Calm and MQ On
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 » General IBM MQ Support » MQ V7 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.