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
Mongodb 2.2, morphia and sharding
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
  7 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
 
Merl  
View profile  
 More options Oct 11 2012, 9:31 am
From: Merl <merlco...@gmail.com>
Date: Thu, 11 Oct 2012 06:31:41 -0700 (PDT)
Local: Thurs, Oct 11 2012 9:31 am
Subject: Mongodb 2.2, morphia and sharding

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 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.
Sam Helman  
View profile  
 More options Oct 11 2012, 10:27 am
From: Sam Helman <sam.hel...@10gen.com>
Date: Thu, 11 Oct 2012 07:27:36 -0700 (PDT)
Local: Thurs, Oct 11 2012 10:27 am
Subject: Re: Mongodb 2.2, morphia and sharding

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


 
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.
Merl Corry  
View profile  
 More options Oct 11 2012, 10:42 am
From: Merl Corry <merlco...@gmail.com>
Date: Thu, 11 Oct 2012 10:42:18 -0400
Local: Thurs, Oct 11 2012 10:42 am
Subject: Re: [mongodb-user] Re: Mongodb 2.2, morphia and sharding

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


 
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.
Sam Helman  
View profile  
 More options Oct 11 2012, 1:25 pm
From: Sam Helman <sam.hel...@10gen.com>
Date: Thu, 11 Oct 2012 10:25:01 -0700 (PDT)
Local: Thurs, Oct 11 2012 1:25 pm
Subject: Re: [mongodb-user] Re: Mongodb 2.2, morphia and sharding

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?


 
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.
Merl Corry  
View profile  
 More options Oct 11 2012, 1:52 pm
From: Merl Corry <merlco...@gmail.com>
Date: Thu, 11 Oct 2012 13:52:42 -0400
Local: Thurs, Oct 11 2012 1:52 pm
Subject: Re: [mongodb-user] Re: Mongodb 2.2, morphia and sharding

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


 
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.
Merl Corry  
View profile  
 More options Oct 12 2012, 2:01 pm
From: Merl Corry <merlco...@gmail.com>
Date: Fri, 12 Oct 2012 14:00:50 -0400
Local: Fri, Oct 12 2012 2:00 pm
Subject: Re: [mongodb-user] Re: Mongodb 2.2, morphia and sharding

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


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


 
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