YiiMongoDbSuite icon indicating copy to clipboard operation
YiiMongoDbSuite copied to clipboard

Patch mongo replicaSet

Open wkii opened this issue 12 years ago • 0 comments

"replicaSet"

The name of the replica set to connect to. If this is given, the master will be determined by using the ismaster database command on the seeds, so the driver may end up connecting to a server that was not even listed. See the replica set example below for details.

config example:

'mongodb' => array( 'class' => 'EMongoDB', 'connectionString' => 'mongodb:/localhost', 'dbName' => 'mydb', 'fsyncFlag' => false, 'safeFlag' => false, 'useCursor' => false, 'replicaSet'=>'myReplSet', // it's new ),

wkii avatar Sep 24 '12 14:09 wkii