335 reputation
15
bio website kamsky.org
location San Francisco, CA
age
visits member for 1 year, 10 months
seen Feb 10 at 7:07

Principal Solutions Architect for MongoDB Inc.


Jan
13
comment MongoDB replication to local hard drive
yes, you just need to run the second mongod on a different port with different dbpath. You will also need to set up appropriate voting/priority to make sure that you don't lose the primary in the case where secondary mongod dies for some reason.
Jan
7
answered MongoDB doesnt start normally?
Jan
7
comment MongoDB doesnt start normally?
mongod does not connect - mongod is the server. --fork just says "spawn mongod into a separate process so I can get the console control back".
Jan
7
comment MongoDB doesnt start normally?
'mongo' command starts the interactive shell for connection to mongodb it is not the database. 'mongod' is the command for starting mongodb server.
Jan
4
comment MongoDB doesnt start normally?
you need to use more precise terms. 'mongod' is the daemon that needs to be running for "mongoDB" to be running. Then you connect to it via 'mongo' shell - so 'mongo' gives an error for you because 'mongod' is not running. You say when you start mongod at the end there "it works fine" - what does that mean? Can you now run 'mongo' shell and connect to the server?
Dec
23
comment Start mongod instance on replica set as background job
Btw, mongod --help lists and describes all available options.
Dec
23
comment Start mongod instance on replica set as background job
You need --fork and also --logpath so logs can go somewhere.
Nov
25
comment Data Analysis with MongoDB or MySQL
All of MongoDB drivers have the aggregate method - grails uses Java driver under the hood and it supports "aggregate" helper.
Nov
25
answered Data Analysis with MongoDB or MySQL
Nov
25
comment How much free space do I need for mongoDB? and how to reclaim lost space?
I replied to this on mongodb-users google group - that's probably a better venue for this anyway.
Nov
9
comment Running a simple logging program, how to diagnose spikes mongod's CPU activity?
if you have queries that do sorts, or you do mapreduce and/or aggregations, that will cause CPU load.
Nov
6
comment MongoDB Storage Architecture (MySQL innodb_file_per_table equivalent to MongoDB)
Why do you want to have different collections in different files?
Nov
6
comment Difference between Sharding And Replication on MongoDB
replica of shard1 (which holds 25GB) would also have 25GB. Your mistake was using 75GB which is only replica size in "unsharded" (or unpartitioned) DB.
Nov
6
comment Running a simple logging program, how to diagnose spikes mongod's CPU activity?
Do you have numa enabled - you can check in Mongo logs at start-up to see if there is a warning about numa - it can cause this sort of symptom.
Nov
6
comment Running a simple logging program, how to diagnose spikes mongod's CPU activity?
capped collections do NOT generate CPU load when they "roll over" - it's a non-event.
Aug
5
comment How to handle “or” possibilities in MongoDB
you can accept an answer (by clicking the checkmark next to it).
Aug
2
comment Mongo repair database “ERROR: error: exception cloning object in local.system.replset ”
deleting local collections other than oplog.rs would NOT make the replica resync.
Jul
27
comment Locking and Faulting on import
Majority of your RAM is not being used - 21g out of 48g even though you're constantly page faulting according to mongostat. What's readahead set at? Anything else running on this system using up RAM?
Jul
27
answered Check and remove iteratively without an index
Jul
27
comment MongoDB RAM requirements doubt
without knowing what is limiting your insert/update rate, it's hard to suggest whether it's RAM. It is likely that it is either RAM or disk IO bandwidth. Do the indexes fit in RAM?