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
Message from discussion distributing storage?
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
 
project2501  
View profile  
 More options Dec 1 2011, 10:26 am
From: project2501 <darreng5...@gmail.com>
Date: Thu, 1 Dec 2011 07:26:08 -0800 (PST)
Local: Thurs, Dec 1 2011 10:26 am
Subject: Re: distributing storage?
Hi,
  Thanks for the tip. If they are randomly inserted into shards, and
evenly distributed.
Then at query time, the id's are returned with no additional penalty,
yes? Because
all the shards got the query.

Is it then possible to know what shard the result id came from and
retrieve it from only that shard?

thanks.

On Dec 1, 10:22 am, Sergei Tulentsev <sergei.tulent...@gmail.com>
wrote:

> If you're updating a document, this write will go to its shard. If you're
> inserting a new document, it will go to a shard where its chunk lives. If
> you want random distribution of new documents, use random shard key, like
> md5 of something.
> But there are some serious drawbacks in this approach. For example, a
> simple retrieval by _id will go to all shard (unless you specify shard key,
> which you will have to calculate again).

> On Thu, Dec 1, 2011 at 7:06 PM, project2501 <darreng5...@gmail.com> wrote:
> > Hi,
> >  I know about mongodb's auto-scaling/sharding and that it is
> > triggered by storage limits in size.
> > But can I distribute my document writes evenly across a cluster? In
> > other words, I want mongos to do something like a round-robin or some
> > other algorithm to distribute writes across the cluster as they
> > arrive.

> > Is it possible?

> > thanks.

> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to mongodb-user@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mongodb-user+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.

> --
> Best regards,
> Sergei Tulentsev


 
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.