[SERVER-488] Command line option for replica pairs setSlaveOk Created: 15/Dec/09  Updated: 15/Jan/10  Resolved: 15/Dec/09

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

Type: Improvement Priority: Minor - P4
Reporter: Bob T. Terminal Assignee: Eliot Horowitz (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently for a replica pairs setup the slave (R) is non-readable until db.getMongo().setSlaveOk() is run within the shell. Can a command line option be added so a shell command setup is not necessary



 Comments   
Comment by Bob T. Terminal [ 16/Dec/09 ]

The goal of this request was to have less external configuration when starting mongod up, essentially putting all configuration of the server into the config file. Was thinking something similar to

pairwith = stagedb02
slaveReadable = true
cappedCollectionSize =
cappedCollectionNum =

Comment by Eliot Horowitz (Inactive) [ 15/Dec/09 ]

you can do this currently:

./mongo --shell --eval "db.getMongo().setSlaveOk()" ...

does this work for you?

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