If you aren't using the balancer then splitting does not result in
anything moving shards. Splitting chunks is a completely logical
operation -- you need to then move the chunks to distribute them.
You may want to disable the balancer while importing, and then enable
it later to evenly distribute the chunks after the import.
On Mon, Sep 3, 2012 at 9:20 AM, mthenw <
maciej....@gmail.com> wrote:
> Hi,
>
> I need some clarification about sharding, pre-splitting and chunks
> balancing. I have 2 shards with balancer turned off and presplit set
>
> db.runCommand( { split : "example.users" , middle : { _id : 5000 } } )
>
> I assume that every document with _id less than 5000 will go to shard 1 and
> every document with _id greater than 5000 will go to shard 2.
>
> My question is:
> if I want to add another shard first I need to move chunks manually and then
> change split options or changing split options will cause automatic chunk
> migration?
>
> PS I don't want use balancer because it slows down while importing large
> data sets.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb