[SERVER-1292] easier to convert single mongod to sharded system WAS: add an '"onShard" option to the shardCollection command Created: 24/Jun/10 Updated: 12/Jul/16 Resolved: 02/Aug/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.8 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeff Lanza | Assignee: | Alberto Lerner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Comments |
| Comment by auto [ 02/Aug/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by auto [ 30/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by auto [ 30/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by auto [ 28/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: from config |
| Comment by auto [ 26/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by Eliot Horowitz (Inactive) [ 24/Jul/10 ] |
|
Yes - that should be the default behavior. YOu don't really need --shardsrv at all - just changes ports |
| Comment by Alberto Lerner [ 23/Jul/10 ] |
|
Do we even need a special option for the behavior? Perhaps addShard could automatically register the databases that it finds in the mongod that became a shard. One related question is whether a mongod can become a shard without downtime, ie. how to turn on --shardsvr on a mongod that was started without it? Is that a concern, and if so, does it belong to this JIRA? |
| Comment by Eliot Horowitz (Inactive) [ 24/Jun/10 ] |
|
I see. What about an option on the "addShard" command like "original" then when it loads all the dbs from that shard? |
| Comment by Mathias Stearn [ 24/Jun/10 ] |
|
On second thought this probably belongs in the enablesharding (db-level) command. The idea is that if you have an existing mongod with data, you can add all of your shards to mongos/config-servers first, then shard the existing collection. Right now you need to add the single shard, set all your collections up, then add the other shards. I think allowing the user to specify the default shard when enabling sharding will do the trick. |
| Comment by Jeff Lanza [ 24/Jun/10 ] |
|
mstearn1 requested I submit the bug. I think it's related to performing some sort of action to migrate to sharding on an already existent database. |
| Comment by Eliot Horowitz (Inactive) [ 24/Jun/10 ] |
|
What does "onShard" mean? |