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 » Queue manager starting with different logs

Post new topic  Reply to topic Goto page Previous  1, 2
 Queue manager starting with different logs « View previous topic :: View next topic » 
Author Message
sunny_30
PostPosted: Mon Aug 25, 2008 7:05 pm    Post subject: Reply with quote

Master

Joined: 03 Oct 2005
Posts: 258

Gaya said:
Code:
all the persistent messages of a queue manager are written on logs


Akanksha said:
Code:
only persistent msgs can survive QM failure... and are stored in logs...


not quite true when the logging used is 'circular'

look at what PeterPotkay said:
Code:
Create a QM with circular logs of 10MB in total. Now go ahead and put 5GB of persistent messages into that QM that has only 10MB of circular logs.

This example makes sense of everything.

If 5GB of persistent messages are put to a queue where circular-logging is used, say the messages are sitting on the queue & not picked up.
How can the 10MB circular-logs hold 5GB persistent messages sitting on queue?
But when the QM is restarted still the messages are replayed onto the 5GB queue.. how? from the queue-file! not circular-log!!

If it is linear-logging, yes all persistent-messages are replayed from log.
If it is circular-logging, all persistent 'committed' messages are replayed from queue-file & 'uncommitted' messages from log.
The circular log only stores uncommitted persistent messages (the ones not written to queue yet) only.
If the log-size is bigger, the large -messages are written to queue faster.

This is what I think how the logging works,
I might be wrong, please correct if Im

//Sunny
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Aug 26, 2008 11:07 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

sunny_30 wrote:
If 5GB of persistent messages are put to a queue where circular-logging is used, say the messages are sitting on the queue & not picked up.
How can the 10MB circular-logs hold 5GB persistent messages sitting on queue?
But when the QM is restarted still the messages are replayed onto the 5GB queue.. how? from the queue-file! not circular-log!!


The queue-file contains all the committed messages across the restart. They do not need to be replayed in any sense of the word.

Messages that have been committed are never accessed again on the logs. Old linear logs which do not contain any uncommitted messages can therefore be deleted without any loss of recoverability.

If the QM went down in the middle of a UOW, uncommitted messages will be reconciled at restart using the logs.

Quote:
If the log-size is bigger, the large -messages are written to queue faster.


Only in the sense that they won't need to span multiple log files.
_________________
Glenn
Back to top
View user's profile Send private message
atheek
PostPosted: Sun Aug 31, 2008 5:06 am    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

gbaddeley wrote:
Old linear logs which do not contain any uncommitted messages can therefore be deleted without any loss of recoverability.


I thought linear logging is used primarily for media recovery ( that is when Q file gets damaged ) rather than just for transactional recovery..so I may still require Old linear logs which do not contain any uncommitted messages, but has recorded one persistent message which still sits in the queue waiting to be consumed by the application...However it wont be required once a new checkpoint has occured or a new media image created using rcdmqimg
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Aug 31, 2008 5:34 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

atheek wrote:
I thought linear logging is used primarily for media recovery ( that is when Q file gets damaged ) rather than just for transactional recovery..so I may still require Old linear logs which do not contain any uncommitted messages, but has recorded one persistent message which still sits in the queue waiting to be consumed by the application...However it wont be required once a new checkpoint has occured or a new media image created using rcdmqimg


Yes, media recovery requires all the logs back to when the last record-image was done for the object. Hence there are two criteria for determining if old linear logs need to be kept, restart from qmgr failure, and media recovery.

Chapter 5 "Recovery and problem determination" of the "WebSphere MQ System Administration Guide V7.0" describes everything in gory detail.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General Discussion » Queue manager starting with different logs
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.