|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Multiple QMGRs on one unix box |
« View previous topic :: View next topic » |
Author |
Message
|
bduncan |
Posted: Fri Jul 20, 2001 10:36 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Just thought I'd share with the group my experience from yesterday when I had to install two queue managers on the same Solaris box that needed to communicate with each other. Although this seemed pretty straightforward, I hit a couple of "gotchas" that I figured I'd share in case anyone else tries this. Remember when you installed MQSeries on your unix system? Before you could do any inter-queue manager communications you had to add entries to the /etc/services and /etc/inetd.conf files, as per the Solaris Quick Beginnings Guide. Well, it turns out that you need to do this for every additional queue manager you wish to host on that box. Furthermore, you have to use separate ports for each queue manager's receiver channels (messages for multiple queue managers can't all be coming over port 1414). So you need to do something like the following in the two aformentioned files:
/etc/services:
MQSeries1 1414/tcp
MQSeries2 1415/tcp
/etc/inetd.conf:
MQSeries1 stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m QM1
MQSeries2 stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m QM2
This way, the channel listener for each queue manager will be listening on a different port. Of course, when you go to define the sender channels between the two queue managers, make sure to place the port number within the conname attribute like so:
CONNAME('192.168.1.1(1415)')
Hope someone finds this useful....
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
PHSmith |
Posted: Mon Jul 30, 2001 8:03 pm Post subject: |
|
|
Newbie
Joined: 26 Jul 2001 Posts: 2
|
Thank You for the info. One of the issues we have run into with multiple qmgrs on the same box is the cleanup. IBM suggests you cleanup the shared memory segments and semephores when you bring down the qmgr. How do you do this without affecting the other qmgr?
Do you have any helpful hints on managing multiple qmgrs on the same box? |
|
Back to top |
|
 |
dgolding |
Posted: Tue Jul 31, 2001 2:10 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
AFAIK, when cleaning up with multiple queue managers, the answer is you can't. There is no way of telling which queue manager owns which resource, so doing an "ipcrm" on all of them will trash and crash every other queue manager as well.
Maybe if IBM were a bit more forthcoming as the structure of these resources it would be way, way easier to write cleanup programs. |
|
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
|
|
|
|