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
- 書き込みエラーが発生した場合、ドライバーはサーバーリストを更新し、書き込みを再試行しますか?