Setting Runtime ParametersThis command allows changes to be made at runtime for some internal options as well some of the Command Line Parameters. This command was added in 1.8 but some of the options have changed since then. Please pay attention to the version when they were made available.
> db.adminCommand({setParameter:1, option1:true, ...})
// real example to increase logging
> db.adminCommand({setParameter:1, logLevel:4})
//disallow table/collection scans > db.adminCommand({setParameter:1, notablescan:true}) { "was" : false, "ok" : 1 } > db.foo.insert({_id:1, name:false}) > db.foo.find() { "_id" : 1 , "name" : false } > db.foo.find({name:true}) error: { "$err" : "table scans not allowed:test.foo", "code" : 10111 } > db.adminCommand({setParameter:1, notablescan:false}) { "was" : true, "ok" : 1 } > db.foo.find({name:true}) Options
Getting Parameter StatesMuch like the ability to set runtime parameters you can also get them.
> db.adminCommand({getParameter:1, syncdelay:true})
{ "syncdelay" : 60, "ok" : 1 }
|

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus