Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pre-splitting question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Patrick Scott  
View profile  
 More options Apr 25 2012, 9:11 am
From: Patrick Scott <patr...@springmetrics.com>
Date: Wed, 25 Apr 2012 09:11:08 -0400
Local: Wed, Apr 25 2012 9:11 am
Subject: Pre-splitting question

I want to shard a collection of around 230 million documents. It has been
suggested that I pre-split the collection before enabling sharding. I ran a
local test using db.runCommand({split: "my_collection", middle: { a:
prefix, b : 1}}). I am using a compound key for sharding and just want to
split on the first portion.

How can I check that pre-splitting works? db.printShardingStatus() shows
nothing since I haven't actually sharded the collection yet. I'm worried
that if I attempt to shard the collection, the pre-split will not have
taken affect or will not be quite right and will severely impact
performance.

Thoughts?

Patrick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Apr 25 2012, 9:13 am
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Wed, 25 Apr 2012 06:13:29 -0700
Local: Wed, Apr 25 2012 9:13 am
Subject: Re: [mongodb-user] Pre-splitting question
Each time you do a split you should see the chunk count increase in
the output of printShardingStatus().

Can you please post the output of printShardingStatus()?

On Wed, Apr 25, 2012 at 6:11 AM, Patrick Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Scott  
View profile  
 More options Apr 25 2012, 9:26 am
From: Patrick Scott <patr...@springmetrics.com>
Date: Wed, 25 Apr 2012 09:26:11 -0400
Local: Wed, Apr 25 2012 9:26 am
Subject: Re: [mongodb-user] Pre-splitting question

Hmmm, I'm afraid to try it on my production setup. I may need to get my
test cluster back up and running.

Should the chunk count increase before I actually shard the collection?

On Wed, Apr 25, 2012 at 9:13 AM, Scott Hernandez
<scotthernan...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Apr 25 2012, 9:29 am
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Wed, 25 Apr 2012 06:29:26 -0700
Local: Wed, Apr 25 2012 9:29 am
Subject: Re: [mongodb-user] Pre-splitting question
Yes, the chunks are just metadata in the config servers. There does
not need to be any actual data to do the splits/migrates -- it is just
a logical (metadata) operation without data.

On Wed, Apr 25, 2012 at 6:26 AM, Patrick Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Scott  
View profile  
 More options Apr 25 2012, 9:40 am
From: Patrick Scott <patr...@springmetrics.com>
Date: Wed, 25 Apr 2012 09:40:44 -0400
Local: Wed, Apr 25 2012 9:40 am
Subject: Re: [mongodb-user] Pre-splitting question

Ok, I'll get another test cluster running and try a couple of split
operations and let you know if I run into more trouble.

On Wed, Apr 25, 2012 at 9:29 AM, Scott Hernandez
<scotthernan...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eliot Horowitz  
View profile   Translate to Translated (View Original)
 More options Apr 25 2012, 1:18 pm
From: Eliot Horowitz <el...@10gen.com>
Date: Wed, 25 Apr 2012 13:18:08 -0400
Local: Wed, Apr 25 2012 1:18 pm
Subject: Re: [mongodb-user] Pre-splitting question
pre splitting is for before you have any data to prep for a bulk load
or something like that.

once you have data, by definition you can't pre-split, so you'll just
want to enable sharding and that will do the splitting for you

On Wed, Apr 25, 2012 at 9:11 AM, Patrick Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »