How to split mongodb write connection and read connection ? I have 3 mongodb server which is configured as replica. this is my database connection setting :
$mongo = new MongoClient(
    "mongodb://100.0.0.1:4000,100.0.0.2:4000,100.0.0.3:4000/mydatabase?replicaSet=loadbalance",[
        "username" => "user",
        "password" => "****"
    ]
);
return $mongo->selectDB("mydatabase");I need split like this
MongoA (master) => read,write MongoB => read MongoC => read