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 » define queue in cluster

Post new topic  Reply to topic
 define queue in cluster « View previous topic :: View next topic » 
Author Message
cowboy2003
PostPosted: Wed Mar 10, 2004 4:57 pm    Post subject: define queue in cluster Reply with quote

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
View user's profile Send private message
kman
PostPosted: Thu Mar 11, 2004 1:23 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Heinz57
PostPosted: Thu Mar 11, 2004 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Thu Mar 11, 2004 7:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Heinz57
PostPosted: Tue Mar 16, 2004 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Ratan
PostPosted: Tue Mar 16, 2004 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bduncan
PostPosted: Tue Mar 16, 2004 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » define queue in 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.