Reputation
3,397
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 8 34
Newest
 Yearling
Impact
~189k people reached

Jan
24
awarded  Yearling
Jan
3
comment Mongodb install fails in Ubuntu 14.04 docker container
This looks like you are installing the Ubuntu 14.04 version of the package (so upstart based) but then trying to run it with the SysV init style scripts. What is the base OS image of the container, and what is actually getting installed by using lsb_release -sc?
Dec
15
awarded  Famous Question
Nov
2
accepted How to persist resolv.conf options such as rotate, timeout in CentOS?
Oct
29
comment How to persist resolv.conf options such as rotate, timeout in CentOS?
That would be a potential problem here because it would then be unable to pick up changes to name servers from DHCP - it wouldn't change often but I would still want it to work
Oct
28
revised How to persist resolv.conf options such as rotate, timeout in CentOS?
added 187 characters in body
Oct
28
answered How to persist resolv.conf options such as rotate, timeout in CentOS?
Oct
28
asked How to persist resolv.conf options such as rotate, timeout in CentOS?
Sep
23
revised Does a MongoDB replica set require at least 2 or 3 members?
added 62 characters in body
Sep
21
answered Monitoring MongoDB 3 using StackDriver in GCE
Sep
18
comment Is it possible to recover MongoDB databases from .ns and .0, .1, . … files?
correct, you will notice that the question was asked about version 2.0.4 - mongodump will only support repair for the MMAP engine now too - with later versions and in particular with WiredTiger you are limited to the repair option with mongod, mongodump is no longer an option
Aug
25
awarded  Caucus
Aug
24
awarded  Popular Question
Mar
24
comment Expanding HAProxy health check to monitor MongoDB primary and secondary state
I wrote the original answer and if I was going to attempt this, it would be using the isMaster command - that is what the drivers use, it doesn't require authentication, or take a lock etc. You would be looking for the boolean located here to be true for writes, false for secondary reads: docs.mongodb.org/manual/reference/command/isMaster/… Not sure how this would actually be useful though, given how the drivers work.
Feb
11
revised What causes SocketException (9001) handling request in node.js app and MongoDB ReplicaSet?
added mtools option for graphing connection churn
Feb
11
awarded  Revival
Jan
31
answered Change mongo data directory for a specific database
Jan
24
awarded  Yearling
Jan
3
comment mongo shard has high number of faults, but top shows only 8% of memory used by mongod
sync just makes sure that data is flushed to disk, and free is just reporting, so really the drop_caches piece is the only relevant piece and that effectively just drops all caches (for non-running processes only), it doesn't really have anything to do with hard/soft faulting besides the fact that if you do it while mongod is not running it will mean all data will need to be paged from disk when you restart it. I suppose with a kernel in a bad state it might help, but I think you would have other issues at that point too
Jan
3
comment mongo shard has high number of faults, but top shows only 8% of memory used by mongod
On Linux, the faults reported in mongostat are in fact hard faults to disk. Soft faults are not reported (except on Windows when both are reported), so most of the rest of the argument that follows in your answer doesn't hold.