Author |
Message
|
KIT_INC |
Posted: Tue Apr 08, 2014 12:05 pm Post subject: MQ V7 pub/sub cluster |
|
|
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 |
|
 |
Vitor |
Posted: Tue Apr 08, 2014 1:17 pm Post subject: Re: MQ V7 pub/sub cluster |
|
|
 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 |
|
 |
KIT_INC |
Posted: Tue Apr 08, 2014 7:04 pm Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Wed Apr 09, 2014 3:26 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Apr 09, 2014 5:17 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Apr 09, 2014 5:30 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Apr 09, 2014 6:56 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Apr 09, 2014 7:29 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Apr 09, 2014 8:20 am Post subject: |
|
|
 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 |
|
 |
KIT_INC |
Posted: Wed Apr 09, 2014 9:55 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Wed Apr 09, 2014 10:08 am Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Wed Apr 09, 2014 12:01 pm Post subject: |
|
|
 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 |
|
 |
|