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 Mongodb 2.2, morphia and sharding
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
 
Rob Moore  
View profile  
 More options Oct 12 2012, 7:02 pm
From: Rob Moore <robert.allanb...@gmail.com>
Date: Fri, 12 Oct 2012 16:02:33 -0700 (PDT)
Local: Fri, Oct 12 2012 7:02 pm
Subject: Re: [mongodb-user] Re: Mongodb 2.2, morphia and sharding

Have you "presplit" and balanced the collection?  

From your description it sounds Like all of the writes are going to the
primary shard, chunks are piling up and they never get moved off.  Is that
right?

If so then pre-splitting will help get the cluster to a level state and
then stay there longer.

http://docs.mongodb.org/manual/administration/sharding/#sharding-admi...

After the splits you will want to "pre-balance" the chunks to avoid issues
during runtime.
   http://docs.mongodb.org/manual/administration/sharding/#migrate-chunks

If you are careful about picking split points you can initially make as
many chunks as you have shards, move them to different shards and then
fracture the chunks into smaller pieces to avoid lots of slow moves.  

Try to estimate the number of chunks you will have in steady state (data
size / chunk size) and fracture the cluster to that level, if possible, for
best performance.

Rob.

On Friday, October 12, 2012 2:01:09 PM UTC-4, Merl wrote:

> Any ideas of what I should be looking for as our bottlekneck?

> On Thu, Oct 11, 2012 at 1:52 PM, Merl Corry <merl...@gmail.com<javascript:>
> > wrote:

>> What are you connecting to from your application?  Mongos

>> When you say, "our cluster loads an unreal amount of data", what exactly
>> do you mean?
>> We have a 3 node sharded cluster.  Each node has 96GB of Ram. When we
>> first start our data loader, we have seen numbers in the range of 4 - 5
>> million documents loaded in less than an hour.  Then it slows down to
>> something in the range of 1 - 2 once Mongo starts to cache.

>> Where does the data come from?  Is it evenly spread across your cluster?
>> The data comes from our systems reporting their transaction log files to
>> the cluster.  All data comes into the first node?

>> When you say, "ram fills up, the chunks starts building up" - RAM on
>> which machine?
>> RAM on the Primary Shard (The 2nd Node).  The chunks will begin to become
>> unbalanced and the primary shard will no distribute the chunks.

>> So in summary:

>> Node 1: Mongod, Mongos, App which loads the data
>> Node 2: Mongod, Mongos, Primary Shard
>> Node 3: Mongod, Mongos, just a Node

>> Each Node: 96GB Ram, 24 Hyperthreaded Cores,  6 - 300GB SAS Drives 16MB
>> Cache 10K RPM (Not High Performance Drives) Raid-10 EXT-4, 10000 mb Network
>> connections

>> On Thu, Oct 11, 2012 at 1:25 PM, Sam Helman <sam.h...@10gen.com<javascript:>
>> > wrote:

>>> To isolate what might be causing your issues:

>>> What are you connecting to from your application?  Is it a mongos, or is
>>> it a direct connection to a mongod?
>>> When you say, "our cluster loads an unreal amount of data", what exactly
>>> do you mean?  Where does the data come from?  Is it evenly spread across
>>> your cluster?
>>> When you say, "ram fills up, the chunks starts building up" - RAM on
>>> which machine?

>>> On Thursday, October 11, 2012 10:42:34 AM UTC-4, Merl wrote:

>>>> It is  2 random 8 character strings as a compound as a compound shard
>>>> key.

>>>> On Thu, Oct 11, 2012 at 10:27 AM, Sam Helman <sam.h...@10gen.com>wrote:

>>>>> I do not know of any issues with Morphia, what is your current shard
>>>>> key?

>>>>> On Thursday, October 11, 2012 9:31:41 AM UTC-4, Merl wrote:

>>>>>> I am curious.  Is morphia still recommended to be used with Mongo?
>>>>>>  We are having major sharding issues with Mongo.  At first it
>>>>>> was believed that our issue was with our sharding key.  We changed the key
>>>>>> to something more random, same problem.  We have upgraded to every new
>>>>>> version of Mongo and still get the same result.  Our cluster loads an
>>>>>> unreal amount of data until ram fills up.  Once ram fills up, the chunks
>>>>>> starts building up on one shard and the cluster becomes unbalanced.  Then
>>>>>> eventually the loading of data backlogs and the cluster becomes completely
>>>>>> unresponsive.  The only thing that has not changed in our entire process is
>>>>>> morphia.  We have used morphia from day one to load data into the system.
>>>>>>  Should we be using something else?

>>>>>  --
>>>>> 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

>>>>  --
>>> 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<javascript:>
>>> To unsubscribe from this group, send email to
>>> mongodb-user...@googlegroups.com <javascript:>
>>> See also the IRC channel -- freenode.net#mongodb


 
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.