Support new ReadPreference semantics, deprecate SlaveOK
(JAVA-428)
|
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 2.7 |
| Fix Version/s: | None |
| Type: | Sub-task | Priority: | Major - P3 |
| Reporter: | Brendan W. McAdams | Assignee: | Antoine Girbal |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
The first version of 2.0 Replica Set Support doesn't implement the proposed "ping bucket" code. We should evaluate implementing this for a future release. |
| Comments |
| Comment by Jeffrey Yemin [ 07/Mar/12 ] |
|
We've decided against the bucking algorithm in favor of the algorithm already implemented by the Java driver. |
| Comment by Brendan W. McAdams [ 16/Dec/11 ] |
|
New system for choosing secondaries, as outlined in the docs for the setReadPreference(secondary) Implementation detail: automatically create a set of buckets that grow In this case, we’d pick randomly from the nodes in the 0-10ms bucket. If If no secondary is available, fall back on reading from the primary. In Java, we’ll probably want to add a ReadPreference class (like Eventually, there should be a “secondaryOnly” option, too, that will only |
| Comment by Antoine Girbal [ 18/Oct/11 ] |
|
I dont quite get this bucketing system. |
| Comment by Brendan W. McAdams [ 18/Oct/11 ] |
|
New guidelines for choosing a secondary as outlined in the spec for the new 2.0 options: setReadPreference(secondary) Bucket Number of nodes If no secondary is available, fall back on reading from the primary. In Java, we’ll probably want to add a ReadPreference class (like WriteConcern). Eventually, there should be a “secondaryOnly” option, too, that will only read from a secondary and return an error if only the primary is available. This is not necessary for 2.0, though. |
| Comment by Antoine Girbal [ 18/Oct/11 ] |
|
what is the ping bucket system? |