Author |
Message
|
pollu |
Posted: Tue Feb 22, 2011 1:02 am Post subject: Cloning and configuring MQ |
|
|
Newbie
Joined: 08 Dec 2010 Posts: 5
|
We have a MQ set up with 3 queue managers, each hosting a few queues, on Server 1.
There was a need for another similar set up for a new test environment.
We cloned the MQ configuration from server 1 to a new server, server 2 and reconfigured - changed the IP address of the cluster sender/receiver channels to reflect server 2.
But the MQ servers in Server 1 and 2 do not seem to be working independently.
Messages meant for queues in server 1 are being routed to queues with the same names in server 2.
Both server 1 and server 2 are in the same network.
Is it possible to have more than one MQ set up working independently in the same network? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Feb 22, 2011 2:37 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
looks like you did a mistake during cloning / reconfiguration and now your mq cluster on server 1 is connected with the mq cluster on server2 so queues exist more than once in the cluster and now messages are distributed by mq clsuter workload mechanism.
it may be that some of this is just temporary, as you cloned, started, changed. but while you started you came up with the old ip addresses. this may be sufficient for the cluster to connect and keep those cluster settings.
check all settings on the new cloned servers, restart all cluster channels or maybe better restart all queuemanagers. make sure there is no configuration that points to server1, cleanup / rebuild the cluster, ......
also cleanup on server1 as you may see queuemanagers twice now in that cluster. _________________ Regards, Butcher |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 22, 2011 3:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You are missing some basic concepts of MQ Clustering.
An MQ cluster is always a fully connected network of the qmgrs that belong to the cluster - regardless of any information about the IP level configuration.
If you want a qmgr to act independently from another queue manager, they can not be in the same MQ cluster. Regardless of the IP level configuration. |
|
Back to top |
|
 |
pollu |
Posted: Tue Feb 22, 2011 5:29 am Post subject: |
|
|
Newbie
Joined: 08 Dec 2010 Posts: 5
|
Thanks for your inputs.
I did change the cluster name on server 2. Will this not create a new cluster?
Instead of cloning, if I manually create the queue managers and queues on server 2, with a new cluster name, will that make server 2 independent?
Can I keep the same queue manager and cluster sender/receiver channel names or do I need to rename the queue managers and channels in server 2, apart from changing the cluster name? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 22, 2011 5:33 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You need to change the cluster name on every object - the queues, the qmgr, the channels.
Your best bet is to remove the server 2 qmgr from ALL clusters, and then add it back to the new one. Start with the queues, then do the qmgr then do the channels. |
|
Back to top |
|
 |
pollu |
Posted: Wed Feb 23, 2011 3:52 am Post subject: |
|
|
Newbie
Joined: 08 Dec 2010 Posts: 5
|
Thanks Jeff.
Is it possible to have 2 independent clusters in the same network?
Say Clusters A and B, on different servers in the same network, each containing queue managers and queues with the same names but referring to the corresponding cluster name:
i.e Server 1 - Cluster A - QM1 (Q1, Q2) and QM2 (Q3) - all references to Cluster A
Server 2 - Cluster B - QM1 (Q1, Q2) and QM2 (Q3) - all references to Cluster B
Will clusters A and B be independent of each other? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 23, 2011 4:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's possible to have two independent clusters on the same computer, not to mention the same network.
You just have to make sure you don't do anything to interconnect or bridge or overlap them. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 23, 2011 6:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
pollu wrote: |
Thanks Jeff.
Is it possible to have 2 independent clusters in the same network?
Say Clusters A and B, on different servers in the same network, each containing queue managers and queues with the same names but referring to the corresponding cluster name:
i.e Server 1 - Cluster A - QM1 (Q1, Q2) and QM2 (Q3) - all references to Cluster A
Server 2 - Cluster B - QM1 (Q1, Q2) and QM2 (Q3) - all references to Cluster B
Will clusters A and B be independent of each other? |
Just to make your life easy, make sure that each qmgr in your MQ network has a different name.
Having the same qmgr name on 2 different servers albeit in a different cluster will only lead to confusion and can be disastrous if you should ever make a mistake and have overlapping clusters...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|