Author |
Message
|
cowboy2003 |
Posted: Wed Mar 10, 2004 4:57 pm Post subject: define queue in cluster |
|
|
Novice
Joined: 27 Feb 2004 Posts: 22
|
I want to define queue in a cluster. Do I have to define the queue for each queue manager or not. For example:
Cluster A has queue manager QM1 on box 1, and Queue manager QM2 on box 2. I want define a queue q in cluster.If box 1 done, the box 2 can services request, ie, failover adn load balance.
I have script to create queue, such as
DEF QL('Q') +
DESCR('') +
DEFPSIST(YES) +
CLUSTER('A') +
DEFBIND(NOTFIXED) +
REPLACE
My question is : Do I have to run the script again the two queue manager, such as both QM1 and QM2?
Thanks, _________________ IBM Certified Workflow Solution Expert |
|
Back to top |
|
 |
kman |
Posted: Thu Mar 11, 2004 1:23 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
You only need to define the queue once, on whichever queue manager. As this is in a cluster, the queue is made available to all authorized application connecting to the cluster.
Of course, if you define Q1 on QMA, then Q1 is local to QMA and not QMB. As long as the repository queue manager cluster is available, Q1 is also available on the cluster for all authorized application. |
|
Back to top |
|
 |
Heinz57 |
Posted: Thu Mar 11, 2004 6:22 am Post subject: |
|
|
 Apprentice
Joined: 21 Jan 2004 Posts: 26 Location: Syracuse, NY
|
For failover and load balancing, we define the same qalias on 2 qmgrs with unique qlocals. If 1 qmgr becomes unavailable, the other will service the request based on qalias. It will also provide a round robin load balance. We do NOT add qlocals to the cluster in this scenario, only qalias's. |
|
Back to top |
|
 |
EddieA |
Posted: Thu Mar 11, 2004 7:23 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
MQ Clustering is NOT a failover solution. It is intended for load balancing.
Please search on this forum for failover and clustering for further discussions on this.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Heinz57 |
Posted: Tue Mar 16, 2004 6:04 am Post subject: |
|
|
 Apprentice
Joined: 21 Jan 2004 Posts: 26 Location: Syracuse, NY
|
Sorry, I didn't intend to imply that MQ Clustering is a failover solution. I was only sharing some of our techniques used in clustering. We do benefit however from the ability to inhibit qalias's on a qmgr and thereby force the traffic to another qalias in a cluster. We do this daily for WMQI broker reloading and other server issues. It's similar to a forced failover.
Sorry again if I was misleading. |
|
Back to top |
|
 |
Ratan |
Posted: Tue Mar 16, 2004 8:40 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
you have to have the Queue defined on all QMs where you intend to do an 'MQGET'. Sharing that Q in the cluster will round robin the requests being put to the Queue from a QM not hosting the Q. _________________ -Ratan |
|
Back to top |
|
 |
bduncan |
Posted: Tue Mar 16, 2004 9:53 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
It sounds like you should read the Clustering Guide... You can access the online version by using the navigation bar above, under documentation -> qmgr clusters _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|