[SERVER-17272] How to make ReplSetTest() in shell work against WiredTiger? Created: 12/Feb/15  Updated: 12/Feb/15  Resolved: 12/Feb/15

Status: Closed
Project: Core Server
Component/s: Shell, WiredTiger
Affects Version/s: 3.0.0-rc8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alex Lerner Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The "mongo" command does not allow for "storageEngine" argument, and neither does ReplSetTest() object from the shell. If I was to spin up a sample Replica Set using WiredTiger, how do I do it (other than manually, of course)



 Comments   
Comment by Daniel Pasette (Inactive) [ 12/Feb/15 ]

I have a helper in my .mongorc.js:

/**
For example, to start up with WT and 200MB oplog:
> simpleReplSet(2, {storageEngine: 'wiredTiger', oplogSize: 200});
*/
function simpleReplSet(nodes, nodeOptions) {
    var replTest = new ReplSetTest( {name: 'name', nodes: nodes, nodeOptions: nodeOptions } );
    replTest.startSet();
    replTest.initiate();
    return replTest;
}

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