[SERVER-7529] collection grows unexpectedly large Created: 01/Nov/12 Updated: 15/Feb/13 Resolved: 09/Nov/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anton V. Volokhov | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
We use mongo 2.2.0, replica set of 3 instances, no sharding. db.stats(1024*1024*1024); |
| Comments |
| Comment by Eric Milkie [ 06/Nov/12 ] |
|
The current MongoDB storage engine design does not handle certain workloads very efficiently with respect to fragmentation. With PowerOf2Sizes, some of the fragmentation issues are ameliorated. So for your collection image-url.pictures, I think you'll see much slower growth, if any, if you turn on that feature. |
| Comment by Anton V. Volokhov [ 06/Nov/12 ] |
|
I didn't set usePowerOf2Sizes flag. |
| Comment by Eric Milkie [ 06/Nov/12 ] |
|
Hi Anton. |
| Comment by Anton V. Volokhov [ 06/Nov/12 ] |
|
Ooops. Sorry, I set in in dev instance. But still. The collection keeps growing: , |
| Comment by Eric Milkie [ 02/Nov/12 ] |
|
For usePowerOf2Sizes to be active on a collection, the "userFlags" field should be at least 1. Can you confirm you set the flag correctly? |
| Comment by Anton V. Volokhov [ 02/Nov/12 ] |
|
I have one worker collection (pictures) and a bunch of tiny helper collections: , { , { , , { , { , , |
| Comment by Eric Milkie [ 02/Nov/12 ] |
|
Hi Anton. |
| Comment by Anton V. Volokhov [ 02/Nov/12 ] |
|
So, repair worked as expected. The collection have been growing to this volume for a month or two. |
| Comment by Anton V. Volokhov [ 02/Nov/12 ] |
|
first, I've made a repair, then modified the collection. |
| Comment by Eliot Horowitz (Inactive) [ 01/Nov/12 ] |
|
Did you start a new collection or repair after switch to power of 2? |