[SERVER-19125] After sharding, can people decide which shard to insert records by themselves? Created: 25/Jun/15 Updated: 25/Jun/15 Resolved: 25/Jun/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Dnv.IytH | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Such as the title, I deploy a Sharded Cluster, in order to reduce the write pressure, so I use hash based sharding. But it will insert records randomly, is there anyways to decide it by myself? Perhaps, if I can devide all sharding(e.g. : 10 shards) into two groups(group A <4 shards>, group B<6 shards>), A just insert users information, B just insert other information. |
| Comments |
| Comment by Ramon Fernandez Marina [ 25/Jun/15 ] |
|
dnviyth, you may want to read about tag aware sharding for your use case. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources. Regards, |