Author |
Message
|
Manikandan |
Posted: Wed Sep 15, 2004 10:59 pm Post subject: Qmgr creation |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Can someone post a QueueMgr creation script for UNIX.
Thanks, |
|
Back to top |
|
 |
EddieA |
Posted: Thu Sep 16, 2004 12:01 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
How one person sets up their QM may not be suitable for you.
See the "Documentation" button at the top of the page. Select it, then the Administration Guide. Go to Chapter 17, and read up on crtmqm. Alternatively, read Chapter 3.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Manikandan |
Posted: Thu Sep 16, 2004 12:05 am Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
However it might be I would want to see as how Qmgrs are configured on different application setup.
If you can post one sample,it would be great!
The logfiles specifications the Queue options,wanted to have a feel about those!! |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Sep 16, 2004 6:18 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If what you want is how people create their qmgrs, I always go with:
crtmqm my.qmgr
Of course, I'm using my qmgr for development and I have no qualms about issuing dltmqm to get rid of it. |
|
Back to top |
|
 |
Manikandan |
Posted: Thu Sep 16, 2004 7:05 am Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Sorry for the misdirected question
I was looking for a complete script which creates the Queue Manager,channels,queues,Xmitq,etc..
I was also looking for the options you use with the crtmqm to create the Qmgr |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Sep 16, 2004 9:40 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Manikandan wrote: |
Sorry for the misdirected question
I was looking for a complete script which creates the Queue Manager,channels,queues,Xmitq,etc..
I was also looking for the options you use with the crtmqm to create the Qmgr |
Channels to where?
Queues for what?
Documentation Button. Top Right. Click It. There is tons of good stuff there if you only take the time to read it. Look at the Intercommunication Manual. It answers a lot of the questions you have been asking. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Sep 16, 2004 10:26 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Before you start, you may want to create some filesystems. I usually create:
/var/mqm 512meg, owned by mqm
/var/mqm/errors 256 meg, owned by mqm
This helps prevent any problems with MQSeries filling up /var and crashing the server.
To create the MQManager you use the crtmqm command preferably as the mqm user, here is an example:
crtmqm -q -u SYSTEM.DEAD.LETTER.QUEUE -lp 40 -ls 10 QMGR01
This creates an MQManager named QMGR01 as the (-q) default MQManager with the (-u) SYSTEM.DEAD.LETTER.QUEUE as the default Dead Letter Queue. It goes on to create (-lp) 40 primary persistent messaging logs in /var/mqm/log/QMGR01/active along with (-ls) 10 secondary persistent messaging logs using circular logging.
This will also create all the SYSTEM.* default objects that are used as templates to facilitate the creation of the custom objects you will create on the MQManager.
Once you have created the MQManager, you have to populate it with the objects you want using the following commands
runmqsc QMGR01
define qlocal(QUEUE.LOCAL.NAME)
define qalias(QUEUE.ALIAS.NAME)
define channel(CHANNEL.NAME) CHLTYPE('') your choice
define proccess('')
define qremote('') etc.. etc...
Check the Manuals. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
Manikandan |
Posted: Sun Sep 19, 2004 9:23 pm Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Actually I wanted to know like how you have made the setup for a Qmgr with queues and channels.
Peter,
I wanted to just know like how do you configure your channels,what size and options you use for your kind of setup.
These were the things I wanted to know.
I have read the administration manual completely and I am sure to create the channels and queues.
I just wanted to know like how your setup is like for example the number of primary logs,the queue depth,the trigger actions etc which might be useful for this newbie.
Thanks for the above reply as mentioned like 40 lp log files which uses circular logging.
By looking at different setup this newbie would come to a good knowledge as how my setup should be done.
YOur setup ideas,queue definititions,scripts would be welcome!!
Thanks a lot,,  |
|
Back to top |
|
 |
Manikandan |
Posted: Sun Sep 19, 2004 9:25 pm Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Smith,
Thanks!!
Two great inputs I got
Make sure that my var file system is enough,better to have a separate file system for /var/mqm,
a thought about have 40 primary log files with circular logging!!
Thanks
Any more inputs would be of seed of thought!! |
|
Back to top |
|
 |
csmith28 |
Posted: Tue Sep 21, 2004 5:48 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
You are welcome, but the creation of your objects is all up to what you need.
Most of the default attributes for Queues and channels are good enough to service most applications.
Default MAXMSGL is 4 meg
Default MAXDEPTH is 5000 messages
I would like to give you more advice but without having a much more intimate knowlegde of what you are trying to do I am afraid I can't give you anymore advice other than, Define one MQManager per Server, create a SVRCONN channel that has a unique name for every application. Create a SDR/RCVR channel and XMITQ that is unique for every application. Only use Clustering if it serves a purpose. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
Manikandan |
Posted: Wed Oct 06, 2004 3:07 am Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
Smith,
I am trying to configure queues for 5 credit card applications.
I have defined the queue manager and queues.
to be more effective,I would like to know how many log files should be defined,linear or circular
the options that should be used for local and remote queues,
the number of transmission queues and channels.
Also,we are not using clustering,we are using two Queue managers on different machines.
if that is the case how do I handle them?Please advise |
|
Back to top |
|
 |
offshore |
Posted: Wed Oct 06, 2004 5:04 am Post subject: |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
I have to agree with Peter & Eddie - check out the documentation & RTM. We are all here to help, but you need to help to put forth an effort to try and understand how mq works.
Setting up queue mangers, queues, channels, ect is basic stuff. As for particulars (I am assuming performance & fine tuning) that is what development if for. Do you need to make maxmsglength bigger, do the logs need to be bigger when moving to production, should channel short retry be altered.......& on and on it could go.
Eddie summed it up:
Quote: |
How one person sets up their QM may not be suitable for you. |
You admit you're a newbie (which none of us have a problem with), but sounds as though you want to know how to create an mq environment from start to finish specifcally, and not recomendations.
In addition to all the documentation that has already been provided I sugguest MQSeries Primer found here: http://www.redbooks.ibm.com/redpapers/pdfs/redp0021.pdf
This is probably way off-topic, but people wanting a complete handout is my pet peeve... |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Oct 06, 2004 6:49 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Manikandan wrote: |
Smith,
I am trying to configure queues for 5 credit card applications.
I have defined the queue manager and queues.
to be more effective,I would like to know how many log files should be defined,linear or circular |
Cirucular or linear us up to you, my personal preference is circular. How many log files depends on how much traffic you expect.
Quote: |
the options that should be used for local and remote queues,
the number of transmission queues and channels. |
Start with the defaults adjust as needed. I am assuming you are starting in a Development Environment.
Quote: |
Also,we are not using clustering,we are using two Queue managers on different machines.
if that is the case how do I handle them?Please advise |
I am not exactly sure what you are asking here. But please do give each MQManager a unique name. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
Manikandan |
Posted: Wed Oct 06, 2004 8:24 pm Post subject: |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
what will happen here if the 40 primary log files get filled up! |
|
Back to top |
|
 |
siliconfish |
Posted: Wed Oct 06, 2004 9:24 pm Post subject: |
|
|
 Master
Joined: 12 Aug 2002 Posts: 203 Location: USA
|
From the above posts I am assuming you are using Circular logging.
It depends - if all the 40 primary logs are full in the middle of the tranaction then sendary logs are used and even the transaction is not completed after using the secondary logs MQ will throw a resource error.
Else it will go back and use the first primary log file. _________________ siliconfish |
|
Back to top |
|
 |
|