I installed the dev build on one of the machines and created a fresh
replica. I did the same thing on another machine with 1.6.3 installed.
They both started with 1.5GB of indexes, out of which ~400MB for _id
indexes.
Here are the results after 3 days:
- dev build - 2.1GB of indexes, 501M of _id indexes
- 1.6.3 - 2.3GB of indexes, 643M of _id indexes
It seems the dev build is better at fragmentation, but the indexes are
still growing.
I also noticed that there'a pretty big difference between running
reIndex() and creating a replica from scratch. Today I ran reIndex()
on all the collections in a replica and the indexes dropped to 1.9GB,
while a completely fresh replica has only 1.5GB of indexes. Where is
the difference coming from?
At this point, it seems the best option is to recreate replicas from
scratch every few days. What would be easiest way to automate this?
On Nov 4, 8:45 pm, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> That one is fine.
>
>
>
>
>
>
>
> On Thu, Nov 4, 2010 at 9:26 PM, Mircea Pasoi <
mircea.pa...@gmail.com> wrote:
> > Ok, I'll try it on one of the replicas and see how it goes. Is the
> > nightly fromhttp://
www.mongodb.org/downloadsgood, or do I need to
> > wait for the next one?
>
> > On Nov 4, 5:25 pm, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> >> Better online cleaning when a delete happens.
> >> So won't shrink immediately but if the index is sparse should start shrinking
>
> >> On Thu, Nov 4, 2010 at 3:48 AM, Mircea Pasoi <
mircea.pa...@gmail.com> wrote:
> >> > What exactly happens in the 1.7 nightly tomorrow, are we going to be
> >> > able tobackgroundreindex on _id?
>
> >> > We have 12M documents and the total index size ranges from 2GB (fresh
> >> > replica) to 3GB (defragmented replica after 1 day). The majority of
> >> > the difference is from the _id indexes. As a side node, we delete
> >> > between 1K and 100K documents every 30mins and we reindex everything
> >> > inbackground(except _id) daily.
> >> > We used to have 20M+ documents in the database a week ago and the
> >> > defragmentation issue was much more accute back then. We had to shrink
> >> > the database to make it work on our 7.5GB RAM instances.
>
> >> > On Nov 4, 12:34 am, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> >> >> Can you try the 1.7 nightly tomorrow?
> >> >> How big is the index now?
> >> >> How many objects?
>
> >> >> On Wed, Nov 3, 2010 at 10:02 PM, Mircea Pasoi <
mircea.pa...@gmail.com> wrote:
> >> >> > Didn't reach an upper-bound yet. It seems we have no choice but to
> >> >> > periodically reindex every collection, but that block the database.
> >> >> > Any chance ofbackgroundindexingfor _id any time soon?
> ...
>
> read more »