Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a queue manager default in a cluster

Tags:

ibm-mq

I have a cluster named inventory with 4 queue managers defined london, paris, newyork, tokyo. If london and paris are the default queue managers which get messages, how can I make newyork and tokyo as default to receive and not allow clients to put messages on london and paris but they should still be in the cluster. can this be achieved with workload management ?

If there are any other solutions please let me know. All this should be done without making any changes on the client side.

Thanks

like image 711
CBR Avatar asked Oct 10 '12 02:10

CBR


People also ask

How do I set the default queue manager?

To create a default queue manager, use the crtmqm command with the -q flag. Indicates that this queue manager is the default queue manager. Is the name of the default transmission queue to be used by this queue manager.

How do I suspend a queue manager in cluster?

Receiving further inbound messages while the queue manager is suspended can be prevented by stopping the cluster receiver channels for this cluster. To stop the cluster receiver channels for a cluster, use the FORCE mode of the SUSPEND QMGR command.

How do I start a queue manager in IBM MQ?

Starting a queue managerOpen the IBM® WebSphere MQ Explorer. Select the queue manager from the Navigator View. Click Start. The queue manager starts.


1 Answers

Adding to T.Rob's suggestions here are couple of options you could take a look at:

  1. Disable put on cluster queue instances in london and paris. So the messages will be distributed between newyork and tokyo.

  2. Write a cluster workload balancing exit that will skip putting messages to cluster queues in london and paris and puts messages only to cluster queue instances in newyork and tokyo.

See Writing and compiling cluster workload exits from the MQ 7 Documentation.

like image 159
Shashi Avatar answered Nov 17 '22 00:11

Shashi