[03:17:04] <tejasmanohar> ugh sorry for spacing, assumimng thats the correct vars ^
[03:19:03] <Boomtime> "req.user._id"? - assuming this is some local variable in your code which contains the value you are searching for, then yes, this will be fine
[10:18:03] <inad922> If I have a cluster with 2 routers, 3 config servers and n shards each of which has a master and a slave node how can I monitor if an instance goes down?
[10:18:23] <inad922> Is there some common method to do this or to monitor the health of the whole cluster in some way?
[11:08:49] <deathanchor> ixti, we all have had one of those days
[11:11:32] <cheeser> "background" only applies to index creation. there's no runtime difference.
[11:14:37] <ixti> am I assuming correct, that if I explicitly specify hint with index I want to use then it will be used?
[11:15:05] <ixti> e.g. I have index: `{ pn: 1, grc: -1 }`
[11:15:53] <ixti> sometimes, when I run query like: `{ pn: { $in: [...] } }` with sort by `{ grc: -1 }`
[11:16:38] <ixti> i'm getting error: failed with error 17144: "Executor error: Overflow sort stage buffered data usage of 33637218 bytes exceeds internal limit of 33554432 bytes"
[11:16:51] <cheeser> a hint is just a suggestion. i don't think it'll force the query engine to use it.
[11:16:59] <inad922> If I have a sharded cluster and I would like to add a new shard is it enough to register the new shard on one router and that will update the config servers or do I need to do this registration on all the routers? I guess not.
[15:36:59] <pjammer> After many many days i can get my replSet to have the two members in a state of Down. Even MMS says they are down; I can mongo blah.host to each one from primary too, I'm at a loss at how to get past this.
[15:37:34] <pjammer> as my primary after 5 mins turns to secondary and then i have to hose the whole AWS volume because i don't know if there is a rs.forget_it_go_back_to_standalone
[15:37:48] <GothAlice> pjammer: Did you select WiredTiger as your storage engine?
[15:38:17] <GothAlice> Rotating rapidly through primaries was a symptom of my own troubles with WT under MMS on under-sized hosts.
[15:42:23] <GothAlice> pjammer: I'm not sure about 2.4 any more, but in 2.6+ at least, downgrading a replica set is relatively easy. Spin up arbiters if you need to get a node back up as primary, remove the nodes, then restart mongod without the --replSet option / config.
[15:43:21] <pjammer> how do you spin them up if you can't access rs.status()
[15:47:29] <pjammer> even the youtube ones look the same but none of them do it with production data
[18:34:01] <Ramone> hey all... any node.js users in here? Is there a way to validate mongo objectids as a type? eg this is false: mongo.ObjectID.isValid(mongo.ObjectID())
[19:41:18] <davidnknight> Anyone had issues with mongo error 'provided setName for Replicaset Connection does not match setName found in server seedlist'
[19:45:23] <deathanchor> happens when the command line (or startup option) for replsetname doesn't match the name in teh rs.config()
[19:45:53] <davidnknight> Yes, it seems to be parsing it incorrectly.
[19:46:21] <davidnknight> [1] server in replset set-5543ac2a97841f8d4400131b is not part of the specified setName set-5543ac2a97841f8d4400131b,mongodb://capital.3.mongolayer.com:10188/testdb
[20:56:45] <BLZbubba> hi guys i am using mongodb-org-server-3.0.2 with wiredtiger. Is there a way in mongod.conf to tell mongod to use O_DIRECT for everything?
[22:54:31] <hemmi> Hey there guys. Is mongodb a suitable store for a flat list of key-value pairs?
[22:55:35] <cheeser> it'll work sure. it's not really meant to be a pure k/v store.
[23:36:32] <Omego2K> hey, this might be a very stupid question, but if I have a field whose type can be an array or string how can one project the array portion to one field and the string portion to another?