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
Replica Set Full Re-sync Out of Memory During Index Building
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
  17 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
 
jnunemaker  
View profile  
 More options Jun 20 2012, 10:30 am
From: jnunemaker <nunema...@gmail.com>
Date: Wed, 20 Jun 2012 07:30:10 -0700 (PDT)
Local: Wed, Jun 20 2012 10:30 am
Subject: Replica Set Full Re-sync Out of Memory During Index Building

I've tried 3 times with one machine and 1 time with another to add another
replica to a set. Each time it gets through 45-47 data files out of 52 and
then starts rapidly using memory until it eventually gets sniped by the OOM
killer.

For now I've added an arbiter so I have 2 full copies and an arbiter. I
need to get the new machines synced though as one of the 2 full copies has
half the hardware as we are in the middle of transitioning to new hardware.

According to our host, we can't snapshot only the data directy, it would
have to be the whole server, which would be a mess for config. Pretty sure
this means we have to do a full re-sync and they keep running out of memory.

It seems to always happen in the index building phase. Let me know if any
more information would help (servers, logs, etc.).


 
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.
Sid  
View profile  
 More options Jun 20 2012, 11:55 am
From: Sid <siddharth.si...@10gen.com>
Date: Wed, 20 Jun 2012 08:55:58 -0700 (PDT)
Local: Wed, Jun 20 2012 11:55 am
Subject: Re: Replica Set Full Re-sync Out of Memory During Index Building
Do you have any swap space ? If yes, how much swap space are you
running i with ?

On Jun 20, 10:30 am, jnunemaker <nunema...@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.
John Nunemaker  
View profile  
 More options Jun 20 2012, 12:10 pm
From: John Nunemaker <nunema...@gmail.com>
Date: Wed, 20 Jun 2012 12:10:05 -0400
Local: Wed, Jun 20 2012 12:10 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building
Yes. 2gb.

On Jun 20, 2012, at 11:55 AM, Sid <siddharth.si...@10gen.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.
Sid  
View profile  
 More options Jun 20 2012, 12:41 pm
From: Sid <siddharth.si...@10gen.com>
Date: Wed, 20 Jun 2012 09:41:05 -0700 (PDT)
Local: Wed, Jun 20 2012 12:41 pm
Subject: Re: Replica Set Full Re-sync Out of Memory During Index Building
Ok. Can you post the following please :

i) details about the machine (RAM, platform, OS) etc.
ii) How big is the data size and what is the size of the indexes etc.
iii) Output from free -m while indexing is going on. Also is the disk
saturated when it happens ?

On Jun 20, 12:10 pm, John Nunemaker <nunema...@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.
John Nunemaker  
View profile  
 More options Jun 20 2012, 3:54 pm
From: John Nunemaker <nunema...@gmail.com>
Date: Wed, 20 Jun 2012 15:54:26 -0400
Local: Wed, Jun 20 2012 3:54 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

1) 6GB of RAM. Just upped to 8GB of RAM and still failed. Latest stable ubuntu.
2) data size is like 54GB. Index size is ~34GB.
3) Disk is not saturated. All the swap gets used too. It just died again, so I couldn't free -m, but the kernel log shows free swap as nothing so I'm assuming it is burning that as well.

It seems to fail at a similar point, right around data file 47 and is always during index building.

The service is analytics, so our active set is relatively small compared to all the data/index size.

Most data is partitioned a collection per month as well, so only the latest collections actually receive writes. It does not appear to be getting to this point yet. Seems to be dying when it gets to a collection a few months back, or at least that is what is in the log.


 
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.
Sid  
View profile  
 More options Jun 21 2012, 11:24 am
From: Sid <siddharth.si...@10gen.com>
Date: Thu, 21 Jun 2012 08:24:09 -0700 (PDT)
Local: Thurs, Jun 21 2012 11:24 am
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Can you please try with a larger swap file. Also, can you please try
reproducing the issue with log level 2 on the node that you are trying to
resync and post the logs. I am interested in seeing the logs specifically
from the time when its building the index. To run a mongo instance with
higher verbosity level just pass an extra argument -vv on the command line
when you start mongo.


 
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.
John Nunemaker  
View profile  
 More options Jun 21 2012, 10:56 pm
From: John Nunemaker <nunema...@gmail.com>
Date: Thu, 21 Jun 2012 22:56:42 -0400
Local: Thurs, Jun 21 2012 10:56 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Bumped up swap to 6GB and changed log verbosity to 2. I'll check on it in the morning (EST) and post the results.


 
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.
John Nunemaker  
View profile  
 More options Jun 22 2012, 10:26 am
From: John Nunemaker <nunema...@gmail.com>
Date: Fri, 22 Jun 2012 10:26:19 -0400
Local: Fri, Jun 22 2012 10:26 am
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Failed again last night with 8GB of RAM and 6GB of swap. Got to data file 49 of 52.

I'd prefer not to post the logs publicly. Should I send them directly to you or drop them in jira community private or something?


 
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.
Sid  
View profile  
 More options Jun 22 2012, 1:36 pm
From: Sid <siddharth.si...@10gen.com>
Date: Fri, 22 Jun 2012 10:36:48 -0700 (PDT)
Local: Fri, Jun 22 2012 1:36 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

So adding extra swap space did help it in making it move forward. As for
the logs, yes can you please create a ticket in community private and
attach the logs there.

Thanks.


 
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.
John Nunemaker  
View profile  
 More options Jun 22 2012, 2:03 pm
From: John Nunemaker <nunema...@gmail.com>
Date: Fri, 22 Jun 2012 14:03:59 -0400
Local: Fri, Jun 22 2012 2:03 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Nah, swap space didn't really help. It made it to the last data file once without swap.

On Jun 22, 2012, at 1:36 PM, Sid <siddharth.si...@10gen.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.
Sid  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 10:13 am
From: Sid <siddharth.si...@10gen.com>
Date: Mon, 25 Jun 2012 07:13:02 -0700 (PDT)
Local: Mon, Jun 25 2012 10:13 am
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Thanks for filing the ticket along with the logs. Will look into it and
update the relevant ticket accordingly. Much thanks for reporting this to
us.


 
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.
John Nunemaker  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 7:36 pm
From: John Nunemaker <nunema...@gmail.com>
Date: Mon, 25 Jun 2012 19:36:07 -0400
Local: Mon, Jun 25 2012 7:36 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

The good news is I managed to get one of the two new machines that I need
to sync up to date last night (after like try 5). Going to try syncing the
other one tonight.

I've had this sync problem before as well. Would love to get it sorted out
so I'm not so nervous about losing machines. I can't currently do file
system snapshots so I kind of have to do full syncs. Let me know if you
need anything else from me. Happy to help.


 
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.
David K Storrs  
View profile  
 More options Sep 28 2012, 4:54 pm
From: David K Storrs <da...@channelmeter.com>
Date: Fri, 28 Sep 2012 13:54:30 -0700 (PDT)
Local: Fri, Sep 28 2012 4:54 pm
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

Did you ever find an answer?  We are having the same issue?

Dave


 
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.
Gianfranco  
View profile  
 More options Oct 5 2012, 9:19 am
From: Gianfranco <gianfra...@10gen.com>
Date: Fri, 5 Oct 2012 06:19:32 -0700 (PDT)
Local: Fri, Oct 5 2012 9:19 am
Subject: Re: [mongodb-user] Re: Replica Set Full Re-sync Out of Memory During Index Building

What version are you using Dave?
There's been a fix since 2.0.7 https://jira.mongodb.org/browse/SERVER-6414
which addresses introduces 'much better for memory consumption and
performance'.
Related to this previous issue.


 
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.
David K Storrs  
View profile  
 More options Oct 10 2012, 4:26 pm
From: David K Storrs <da...@channelmeter.com>
Date: Wed, 10 Oct 2012 13:26:44 -0700 (PDT)
Local: Wed, Oct 10 2012 4:26 pm
Subject: Re: Replica Set Full Re-sync Out of Memory During Index Building

On Oct 5, 6:19 am, Gianfranco <gianfra...@10gen.com> wrote:

> What version are you using Dave?

Gianfranco,

Pardon the long lag time.  We have resolved this now after much
beating of heads.  It finally turned out that we had several problems
going on:

- There may have been a piece of faulty hardware on the secondary we
were using; it would reboot randomly when Mongo had issues.  After a
hardware swap, this issue stopped; all data synced but indexes were
not built.

- We took the machine out of the RS and built the indexes manually,
then added it back.  Probably solved.

- Additionally, the week before my post we upgraded from 2.0 to 2.2,
and one of the config servers was missed; it was still running 2.0
which was keeping the cluster metadata read-only and preventing the
balancer from running.  Not related to the replica set issue, but
annoying and it confused the issue with the RS for a time.

Thanks for the pointer about the 6414 bug.

Dave


 
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.
David K Storrs  
View profile  
 More options Oct 10 2012, 4:28 pm
From: David K Storrs <da...@channelmeter.com>
Date: Wed, 10 Oct 2012 13:28:49 -0700 (PDT)
Local: Wed, Oct 10 2012 4:28 pm
Subject: Re: Replica Set Full Re-sync Out of Memory During Index Building
Oh, I forgot to add -- we were also using a stock CentOS install,
which had a 1024 file handle limit and had ext3.  After reading
http://www.mongodb.org/display/DOCS/Production+Notes we got it upped
to 8k, used ext4, and did some of the other tweaks as specified
therein.  That was probably the biggest piece.

Dave

On Oct 10, 1:26 pm, David K Storrs <da...@channelmeter.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.
Gianfranco  
View profile  
 More options Oct 30 2012, 6:41 am
From: Gianfranco <gianfra...@10gen.com>
Date: Tue, 30 Oct 2012 03:41:20 -0700 (PDT)
Local: Tues, Oct 30 2012 6:41 am
Subject: Re: Replica Set Full Re-sync Out of Memory During Index Building

Glad your servers are running smoothly now


 
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 »