[CSHARP-380] Restrict slaveOk reads by Tag Created: 11/Jan/12 Updated: 02/Apr/15 Resolved: 11/Jan/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.3.1 |
| Fix Version/s: | 1.4 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Pierre Dane | Assignee: | Robert Stam |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
We would like to be able to restrict slaveOk reads to a particular datacentre. It would be great if we could set a tag or list of tags in MongoServerSettings that would restrict reads to only the servers with those tags. Another option would be to be able to pass in a list of servers when connecting direct and have the reads load-balanced across these. |
| Comments |
| Comment by Pierre Dane [ 11/Jan/12 ] |
|
Thanks Robert |
| Comment by Robert Stam [ 11/Jan/12 ] |
|
ReadPreference will have options to use tags to identify which servers to send reads to. |