对 mongodb 副本集的典型 PHP 调用
$m1 = new Mongo("mongodb://sf2.example.com,ny1.example.com",
array("replicaSet" => "myReplSet"));
文件说:
// you only need to pass a single seed, the driver will derive the full list and
// find the master from this seed
问题:
那么这是否意味着司机会满足
derive the full list
每一个要求?或者他们会缓存它?如果他们缓存它,它会在故障转移期间引起问题吗?写到
slave
它被降级为secondary
- 驱动程序在遇到写入错误时会刷新服务器列表并重试写入吗?