[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: | |
| 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:
... and maybe eve in the future things like ....
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
? | |
| Comment by Eric Milkie [ 29/Oct/14 ] | |
|
cailin.nelson@10gen.com Can you provide a list of MMS use cases for getLog("repl")? |