|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Uniform Cluster how to set applname(s) in queue manager |
« View previous topic :: View next topic » |
Author |
Message
|
bruce2359 |
Posted: Thu Oct 15, 2020 12:52 pm Post subject: Uniform Cluster how to set applname(s) in queue manager |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Darned if I can recall or find the specifics of how to set at the Uniform Cluster queue manager(s) the name or names of applications to be balanced.
I find lots of ways to specify application name in CNO or JNDI or otherwise programmatically. One reference said 'administratively' on the client.ini or environment variable.
Have I misunderstood? If an MQ Client app connects to a qmgr via one of the possibilities in the JSON CCDT, is that what prompts the Unified Cluster magic to begin balancing that application name?
I'm looking at v9.1.4 doc https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.pla.doc/q132762_.htm
Anyone? _________________ 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 |
|
 |
hughson |
Posted: Thu Oct 15, 2020 10:50 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
I think it is connecting to the Queue Manager Group name in the CCDT that means it will be balanced - nothing to do with providing an ApplName, as it will just use the executable name if you don't supply one, and can still be balanced then too.
Your CCDT must have both the set of queue managers using QMNAME(group-name) and then again with QMNAME(qmgr-name).
This blog post might help?
Walkthrough: Auto application rebalancing using the Uniform Cluster pattern
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
tczielke |
Posted: Fri Oct 16, 2020 1:01 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Based on that link, it is the MQCNO_RECONNECT option that is the switch that says an application should be rebalanced in a uniform cluster.
Quote: |
We're using this sample because it is a client connected app that connects using the CNO option MQCNO_RECONNECT. In terms of Uniform Clusters this CNO option should be treated as the 'magic switch' to tell the queue manager that this application instance is willing to be rebalanced to another queue manager in the cluster. |
_________________ Working with MQ since 2010. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Oct 16, 2020 2:06 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
My pondering was/is: how does the Uniform Cluster queue manager know which applications to redistribute? If it’s MQCNO_RECONNECT, then any/all apps that specify it will be distributed. I thought I recalled a server-side list of apps that limit redistribution. _________________ 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 |
|
 |
hughson |
Posted: Fri Oct 16, 2020 8:34 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
tczielke wrote: |
Based on that link, it is the MQCNO_RECONNECT option that is the switch that says an application should be rebalanced in a uniform cluster.
Quote: |
We're using this sample because it is a client connected app that connects using the CNO option MQCNO_RECONNECT. In terms of Uniform Clusters this CNO option should be treated as the 'magic switch' to tell the queue manager that this application instance is willing to be rebalanced to another queue manager in the cluster. |
|
Feels like it has to be both MQCNO_RECONNECT AND connection to a group of queue managers. It wouldn't make sense to rebalance an application that was deliberately connecting to a specific queue manager and asking for reconnect.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Oct 17, 2020 12:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
hughson wrote: |
Feels like it has to be both MQCNO_RECONNECT AND connection to a group of queue managers. It wouldn't make sense to rebalance an application that was deliberately connecting to a specific queue manager and asking for reconnect.
Cheers,
Morag |
Yes that works. The Client application name is for when you want to check how your application is being load balanced. On the other hand, for your application to be correctly load balanced you need at a minimum the number of instances to match the number of possible running targets. Preferably run twice that number of instances...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
tczielke |
Posted: Sat Oct 17, 2020 4:24 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
hughson wrote: |
tczielke wrote: |
Based on that link, it is the MQCNO_RECONNECT option that is the switch that says an application should be rebalanced in a uniform cluster.
Quote: |
We're using this sample because it is a client connected app that connects using the CNO option MQCNO_RECONNECT. In terms of Uniform Clusters this CNO option should be treated as the 'magic switch' to tell the queue manager that this application instance is willing to be rebalanced to another queue manager in the cluster. |
|
Feels like it has to be both MQCNO_RECONNECT AND connection to a group of queue managers. It wouldn't make sense to rebalance an application that was deliberately connecting to a specific queue manager and asking for reconnect.
Cheers,
Morag |
Yes, I agree that if you want an application to use this uniform cluster capability, you will want to use the connection to a group of queue managers for it to work properly. However, what if you have a scenario where you have two separate applications that 1) set the MQCNO_RECONNECT option 2) connect to queue managers QM1 and QM2 and 3) you only want one of the applications to participate in the uniform cluster. How would you get that to work? In other words, how would you tell the other application "I know you are turning yourself on for UC with the MQCNO_RECONNECT option, but I really want you to be off for UC." This may be the crux of Bruce's question. I don't know the answer myself, I just started doing a POC on this uniform cluster functionality yesterday. _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Oct 18, 2020 6:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
tczielke wrote: |
Yes, I agree that if you want an application to use this uniform cluster capability, you will want to use the connection to a group of queue managers for it to work properly. However, what if you have a scenario where you have two separate applications that - set the MQCNO_RECONNECT option
- connect to queue managers QM1 and QM2 and
- you only want one of the applications to participate in the uniform cluster.
How would you get that to work? In other words, how would you tell the other application "I know you are turning yourself on for UC with the MQCNO_RECONNECT option, but I really want you to be off for UC." This may be the crux of Bruce's question. I don't know the answer myself, I just started doing a POC on this uniform cluster functionality yesterday. |
If you set the reconnect option to only reconnect to the same qmgr, I believe you will exclude the application from load balancing. If the queues used in QM1 and QM3 only exist in QM1 and QM3 and not say in QM2 and QM4 your application should only load balance between QM1 and QM3. It should be easy to verify this last assumption in your POC.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Oct 18, 2020 10:44 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
tczielke wrote: |
This may be the crux of Bruce's question. |
Indeed.
Or more broadly: How do I market UC to my clients? At this point, UC seems to be a niche solution.
No Redbook so far. Some how-to's to implement. Cool 9.1.5 auto-configure.
Some of the guidelines cobbled from available doc, and paraphrased here:
- no more than 10 queue managers in a UC
- very similarly provisioned and configured
- UC qmgr group deployed should be limited by app type
- apps should be a balance of PUTers and GETers
- no qmgr or msg affinities
- best for apps with long connect time
Perhaps a separate UC for app type.
While not explicitly stated (that I can find) is IBM's move toward cloud-flavored deployment - with Liberty or similar - just-in-time to meet demand. UC seems to fit this model. _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|