Reputation
4,416
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
6 23
Impact
~120k people reached

Apr
14
answered MongoDB installation Ubuntu 12.04 LTS errors
Mar
31
awarded  Notable Question
Feb
19
awarded  Popular Question
Feb
18
comment Can we resize a already capped collection in mongo db
convertToCapped clones the data to a new collection, drops the old one, see: stackoverflow.com/a/11256419/1148648
Feb
18
comment Can we resize a already capped collection in mongo db
It's not possible at all - what you have done is used the command to convert a non-capped collection to capped. That does not resize an existing capped collection, because resizing a capped collection is simply not possible at present (with or without down time). You can only create new, drop old and copy data between (with mongodump, javascript etc.)
Feb
18
revised Mongodb: Possible to enlarge a capped collection?
Added link to Jira ticket for feature request
Feb
18
comment Can we resize a already capped collection in mongo db
Again, if you read the answer, that is not resizing a capped collection, that is creating a new capped collection and copying the documents over from the old one - you would have to stop all writes to do it, and using javascript it would not be particularly fast. Until SERVER-1864 is implemented resizing capped collections is not possible
Feb
18
revised Mongodb: Possible to enlarge a capped collection?
added 47 characters in body
Feb
18
comment Can we resize a already capped collection in mongo db
If you read the answer it says: "you can't alter a capped collection size without dropping it and recreating it" - so no, resizing of any type is not possible, up or down, it is fixed.
Feb
18
comment MongoDB sharding one collection on single server (2 drives)
you don't need sharding to do this - use directoryperdb, put oldDB on one drive, newDB on other drive and have a script to migrate documents periodically
Feb
17
comment MongoDB auto-failover: election doesn't happen
There is nothing obviously wrong with the config here, so time to look at the logs. The logs will tell you why there is no primary being elected. Given the priorities I would expect Host B to be elected, so that's the first log I would look at. Similarly the logs from Host A after the step down would be instructive. If you post the relevant sections, happy to take a look.
Feb
8
answered What “fromRouter” option means on MongoDB aggregations?
Feb
6
answered Why does mongodb require three config servers
Feb
5
awarded  Yearling
Feb
4
revised Sample YAML Configuration Files for MongoDB?
WiredTiger config options have been altered with later releases, old ones no longer work, updating to reflect changes
Feb
4
revised MongoDB Disk Usage with Capped Collections
The question is not actually about memory usage, and is specifically about capped collections, so altered the title to more accurately reflect the question
Feb
3
answered MongoDB Disk Usage with Capped Collections
Feb
3
comment what is default balancing window in MongoDB
technically it will always be on, but it will only move chunks if there is an imbalance
Jan
27
answered Setup MongoDB replica servers with different power?
Jan
20
answered Is there any way to change the size of preallocate data file in mongodb?