335 reputation
15
bio website askasya.com
location San Francisco, CA
age
visits member for 2 years, 2 months
seen 1 hour ago

Principal Solutions Architect for MongoDB Inc.

Answering questions and discussing MongoDB use cases on MongoDB Users Group at https://groups.google.com/forum/#!forum/mongodb-user

Posting "stupid MongoDB tricks" on http://www.kamsky.org/stupid-tricks-with-mongodb.html

Answering most interesting questions in details on http://askasya.com


7h
comment How to determine database read/write ratio on MongoDB MMS?
are you mainly asking about a single node (primary of replica set) or about a sharded cluster?
May
13
comment High Global Lock % on Mongodb
Also index miss does not mean that the record was not in an index, it means that index was not in RAM.
May
13
comment High Global Lock % on Mongodb
I think you misread the chart - idx miss is 0.
May
13
comment high background flush avg mongodb
I want a puppy!!!
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).