[SERVER-15804] fix up replica set ramlog Created: 24/Oct/14  Updated: 11/Jul/16  Resolved: 24/Nov/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 2.8.0-rc2

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The "rs" ramlog should contain all RS_* state transitions, sync source changes, and changes in write acceptance (transition to primary complete).



 Comments   
Comment by Githook User [ 24/Nov/14 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-15804 ensure ramlog contains state changes, syncsource changes, and write acceptance changes
Branch: master
https://github.com/mongodb/mongo/commit/d6d10d0c21ad2118dce9e3d6c5efcc6bef965d58

Comment by Andy Schwerin [ 30/Oct/14 ]

It's probably OK. We'll make sure to get state transitions and rollbacks into the updated ramlog.

Comment by Cailin Nelson [ 30/Oct/14 ]

I was thinking once a minute, but we can adjust. If you think its a bad idea to do it more frequently than say, once every 3 minutes, then we we'll just not do this.

Comment by Andy Schwerin [ 30/Oct/14 ]

cailin.nelson@10gen.com, reading the ramlogs is not an optimized codepath. How often do you intend to run it?

Comment by Cailin Nelson [ 29/Oct/14 ]

We are not currently using it for anything, but we were about to start using it for the following:

  • Tracking ROLLBACKS
  • Tracking PRIMARY elections

... and maybe eve in the future things like ....

  • Tracking the history of which node is syncing from which node

Some of this we can also get from periodically polling rs.status(). However, the log output is potentially a more reliable source of data as we would not miss events such as multiple elections or multiple rollbacks that occur within one polling interval.

Comment by Andy Schwerin [ 29/Oct/14 ]

cailin.nelson@10gen.com, yes it is the same thing.

Comment by Cailin Nelson [ 29/Oct/14 ]

Is this the same thing as

db.runCommand({getLog: 'rs'}) 

?

Comment by Eric Milkie [ 29/Oct/14 ]

cailin.nelson@10gen.com Can you provide a list of MMS use cases for getLog("repl")?

Generated at Thu Feb 08 03:39:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.