ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Does it matter for logs to be small?

Post new topic  Reply to topic
 Does it matter for logs to be small? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Fri May 17, 2013 12:42 am    Post subject: Does it matter for logs to be small? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Our production QMGR was created with log size set to 1024, and 3 primary logs and 2 secondary logs, which makes the log space estimated to 4M*5=20M. We have been constantly having log space full stuations and are considering enlarge them.

If we don't recreate the QMGR, we plan to have 180 primary logs and 60 secondary logs, which totals (180+60)*4M=240*4M=960M.

Otherwise we could re-create the QMGR setting log size to 64M, 10 primary logs and 5 secondary logs, totals 960M as well.

Does it make significant difference to have a lot of small logs just to avoid recreating the QMGR?
_________________
Bazinga!
Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 17, 2013 1:32 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

IBM need to change the defaults - they are simply too small and it's annoying (if someone forgets to set them at installation time).

I believe you will get better performance with larger size values in fewer files.
Back to top
View user's profile Send private message
exerk
PostPosted: Sat May 18, 2013 2:07 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

zpat wrote:
IBM need to change the defaults - they are simply too small and it's annoying (if someone forgets to set them at installation time)...

Site standards, documentation, automation, and peer review should ensure that the mqs.ini file is edited to ensure correct log numbers and size are specified, or made irrelevant.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
zpat
PostPosted: Sat May 18, 2013 3:16 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Really, that never occurred to me.

Nevertheless not everyone is as perfect as you or me and I have come across queue managers installed with the defaults.

Hence the problem posted above - it will happen due to Sod's law.

Defaults are very, very important to make sensible because beginners will assume they are suitable for most purposes.

I waste a lot of time chasing developers who don't use MQSTR or MQRFH2 as their MQMD format (the default is blank), thanks to that unhelpful default.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sat May 18, 2013 3:30 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

IBM finally bumped up the default size of the MQ error logs a few years ago from 256K, so maybe there's hope for the transactional log defaults to become realistic in the future too.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
exerk
PostPosted: Sat May 18, 2013 5:11 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

zpat wrote:
Really, that never occurred to me.

Unlike Sheldon I do get sarcasm...

zpat wrote:
Nevertheless not everyone is as perfect as you or me and I have come across queue managers installed with the defaults.

Thank you for the vote of confidence, but I'm anything but perfect...

zpat wrote:
Hence the problem posted above - it will happen due to Sod's law.

Indeed, but only likely on a manual install, which processes and procedures should make all but impossible...

zpat wrote:
Defaults are very, very important to make sensible because beginners will assume they are suitable for most purposes.

Agreed. The problem, from a vendors point of view, is just how much hand-holding to do...

zpat wrote:
I waste a lot of time chasing developers who don't use MQSTR or MQRFH2 as their MQMD format (the default is blank), thanks to that unhelpful default.

Now that one I fully sympathise with, which is why 'coding' standards should to be included within any discussion of WMQ standards in a using organisation.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat May 18, 2013 5:23 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

zpat wrote:
IBM need to change the defaults - they are simply too small ...

Default log size is more than adequate for initial installation and product verification (IVP).

And, yes, I wholeheartedly agree that the defaults are too small for QA and Production. But, really, what size would you have the defaults set at??
_________________
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
View user's profile Send private message
zpat
PostPosted: Sat May 18, 2013 8:51 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Since those values were chosen, the average size of disks has increased massively - they should at least keep some pace.

They should increase the logpagesize because then the secondary log files would actually be of some use - and they will only be allocated if needed.

I have no problem with keeping the primary log file number low - just don't make the size so pathetic.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat May 18, 2013 9:35 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

zpat wrote:
just don't make the size so pathetic.




Or at least a way to make the default size something more reasonable.

I have nearly lost count of the number of QMGRS I have had to rebuild because the logfile size was too small.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat May 18, 2013 9:55 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Reasonable for who? How about setting mqs.ini defaults to an invalid value. Next crtmqm attempt will fail, rather than creating irrationally sized logs.
_________________
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
View user's profile Send private message
exerk
PostPosted: Sat May 18, 2013 10:48 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

bruce2359 wrote:
Reasonable for who?...

Precisely the issue - what's good for one site is anathema to another.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat May 18, 2013 12:54 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

exerk wrote:
bruce2359 wrote:
Reasonable for who?...

Precisely the issue - what's good for one site is anathema to another.

I take meds for that.
_________________
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
View user's profile Send private message
mvic
PostPosted: Sat May 18, 2013 1:25 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

zpat wrote:
IBM need to change the defaults - they are simply too small and it's annoying (if someone forgets to set them at installation time).

Probably someone at IBM heard you, a few years ago.

There was a change in the defaults. See http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amqzag.doc/fa12570_.htm

"The default number of log file pages is 4096, giving a log file size of 16 MB."

So a default setting of 5 x 16 = 80 MB maximum active log. Probably keeping pace with modern needs? (though not necessarily modern disk capacities as in your other post, but I'm not clear what relevance that has. Data writing *rate* has more impact on log store size choice than disk max capacity).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Does it matter for logs to be small?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.