Author |
Message
|
velocity |
Posted: Thu Mar 12, 2009 5:43 am Post subject: Active logs and space considerations |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Hi Guys -
The business requirement needs for us to increase log file sizes to
logPrimaryfiles=70(i think 63 is max)
logSecondaryfiles=30
The max queue depth is increased to 150,000 to accomodate messages for 15 mins just incase the application servicing that queue goes down. Messages are persistent and we are using circular logging.
Each logfile size is 4MB. 1kb messages fill up the queue. I am wondering how can we calculate if the queue is full, the disk space in /var/mqm/log will be sufficient for the logs to support this scenerio. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 5:49 am Post subject: Re: Active logs and space considerations |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
logPrimaryfiles=70(i think 63 is max) |
I think the max is 254, or 510 if you're using Unix.
velocity wrote: |
I am wondering how can we calculate if the queue is full, |
If the queue is full / out of disc (these are 2 different scenarios) the logging is irrelevant.
velocity wrote: |
the disk space in /var/mqm/log will be sufficient for the logs to support this scenerio. |
It's just a question of multiplying the numbers together to get total disc needed _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
velocity |
Posted: Thu Mar 12, 2009 5:56 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Thanks! Now this is right out of the manual..what does this mean?
LogPrimaryFiles=3|2-62 Primary log files are the log files allocated during creation for future use. The minimum number of primary log files you can have is 2 and the maximum is 62. The default is 3. The total number of primary and secondary log files must not exceed 63, and must not be less than 3.
I am trying to research if we have sufficient diskspace to support this kind of logging. How can I do this? I guess your 3rd point addresses it, not that i get it  |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 5:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
Thanks! Now this is right out of the manual..what does this mean? |
What manual? Post the link. I'm betting it contains "middleware.its.state.nc.us" in the address _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
velocity |
Posted: Thu Mar 12, 2009 6:03 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Websphere MQ system admin guide v6 page 96. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 6:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
I guess your 3rd point addresses it, not that i get it  |
Total Disc space = size of log pages * number of log pages per log * max number of primary logs * max number of secondary logs.
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
velocity |
Posted: Thu Mar 12, 2009 6:30 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Quote: |
Total Disc space = size of log pages * number of log pages per log * max number of primary logs * max number of secondary logs.
|
Total disk space = 4k*1k*70*30=8808 MB
where number of log pages per log=log file size/size of log page= 4MB/4KB = 1KB.
Hope I got this right..Pls correct me if I am wrong. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 6:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
Websphere MQ system admin guide v6 page 96. |
Interesting. My copy of the WMQv6 System Admin Guide talks about the MQ Explorer on page 96. The part you're quoting should be much further down the book. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
velocity |
Posted: Thu Mar 12, 2009 6:51 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
it is given under 'log defaults for Websphere MQ,
chapter 9: configuring websphere MQ.
By the way, I looked at /var/mqm/logs and found logfiles each of around 4MB size..if there are a total of 70+30 = 100 log files(primary and secondary) I get to around 400MB size of total disc space consumed by logs..but my calculation in the previous post doesnt match up..
HELP  |
|
Back to top |
|
 |
velocity |
Posted: Thu Mar 12, 2009 6:54 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Quote: |
Total Disc space = size of log pages * number of log pages per log * max number of primary logs * max number of secondary logs |
should this be:
Total Disc space = size of log pages * number of log pages per log * (max number of primary logs + max number of secondary logs)..? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 7:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
it is given under 'log defaults for Websphere MQ,
chapter 9: configuring websphere MQ. |
That's not on page 98 in the v6 version of the manual, nor does the v6 version of the manual give 63 as the maximum number of primary logs. I suggest you have a closer look at the front sheet of that manual.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 12, 2009 7:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
velocity wrote: |
Quote: |
Total Disc space = size of log pages * number of log pages per log * max number of primary logs * max number of secondary logs |
should this be:
Total Disc space = size of log pages * number of log pages per log * (max number of primary logs + max number of secondary logs)..? |
Yes, probably.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 12, 2009 7:01 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
SC34-6548-00 WMQ (v6) System Admin Guide, page 229 "Calculating the size of the log," p229, is a good read. There is a table giving sizing information, too.
Same manual, crtmqm command, p299, another good read. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|