[02:19:32] <OliverJAsh> hey guys, where might the default mongo configuration file be installed on centos?
[02:19:48] <OliverJAsh> it's not /etc/mongodb.conf
[02:19:52] <OliverJAsh> i'm looking for the dbpath
[02:20:25] <resting> is the size returned by .stats() in bytes?
[06:03:10] <resting> what does working set mean? if i write continuously a document with 2000 entries/sec for days…does the working set increase as time goes on?
[07:17:40] <resting> jY: yeah..didn't realise what i was missing till i look deeper…hm..that said, i'm not sure if i should run my test again simply because i upgraded…it will cost another 4 days of waiting...
[07:22:06] <jY> resting: generally mongo should just use the same memory/disk location
[07:22:13] <jY> it might be a bug they have long since fixed though
[07:24:53] <resting> jY: possibly…i hope it'll work too...
[07:44:43] <resting> any idea if the command numactl --interleave=all /usr/bin/local/mongod is a one time command, or do i have to add it to a startup script that runs everytime on boot?
[07:58:25] <resting> hm..now i can't start mongo..
[11:24:39] <jd823592> Hello i have added a user to my admin db and then i restarted with --auth but i still can manipulate the admin db without ever providing the auth credentials
[11:29:49] <jd823592> never mind i probably get it
[11:32:30] <jd823592> the error is thrown not on use db which makes sense :)
[12:20:57] <xcat> I am trying to set up a replicate set
[12:21:19] <xcat> But when I add the slave with rs.add() I get: exception: member x.x.x.x:27017 has a config version >= to the new cfg version; cannot change config
[12:21:26] <xcat> What the hell does that even mean? Even Google doesn't know
[12:53:02] <xcat> How can I reconfigure the hostname if Mongo misdetects it?
[15:27:05] <saml> how can I query for documents that has {"foo": "bar"} and exists key called "XXX" ?
[15:28:51] <alexwaters> how can I query for a document containing a nested dict (and search through that dict.) for example: {u'_id': ObjectId('510c9b9d51a63b145b9efa9b'), u'call': {u'status': u'COMPLETED', u'transid': u'12345', u'result': u'1'}}
[15:29:23] <saml> alexwaters, what do you want to find?
[15:29:29] <alexwaters> i want to be able to do somethin like find({'call':{contains transid:12345
[17:15:36] <jY> link15: what does your connect look like?
[17:16:23] <vlad-paiu> Anybody that can give a hand about how I can achieve some queries with the Mongo C API ? I want to run something like db.collection.find().sort{{field : -1})
[17:19:30] <link15> so should i not have a master and normal connection?
[17:19:34] <link15> and only go through one connect?
[17:19:41] <alexwaters> i want to findone but be sure that there is only one. is there a way to do findone and return one document with a count of the total documents matching the query? or do I have to pass two separate commands for that
[17:19:50] <jY> your current_app.config['MONGODB_HOST'] should not be a single host
[17:20:00] <vlad-paiu> kali: I guess I found the solution at http://api.mongodb.org/c/0.4/tutorial.html .. was kind of confused because I did not see an explicit sort parameter for the mongo_find command
[17:20:02] <jY> it should be a uri of all your hosts in the replicaset
[17:32:26] <kali> vlad-paiu: i think the bson builder helpers take care of that...
[17:33:15] <vlad-paiu> well.. not sure. for example I have .. int bson_append_int( bson *b, const char *name, const int i ).. my 'name' is not 0 terminated, cause I get if from the wire from another source..
[17:34:46] <kali> vlad-paiu: you meant it's not a C constant hanging around but something coming from somewhere else ?
[17:35:26] <kali> vlad-paiu: sorry to state the obvious, but you're aware null-terminated strings are the usual way to deal with string in C ?
[17:37:04] <vlad-paiu> kali: well, yeah, the usual way, but not the best way, I guess. Anyway, not a biggie :) thanks for your help
[18:28:58] <seban> hi, I have question about padding, compacting collection and resident memory. My mongods can take upto 24G od RAM, but takes only from 2G to 4G. But after I compact collection it grows to 16G - 18G. How compact can affect this?
[18:56:14] <JoeyJoeJo> What query would return all fields except for the _id filed?
[18:58:53] <strnadj> JoeyJoeJo: I try it now, and the command probably works ;-)
[19:52:28] <karptonite> Odd apparent bug I'm trying to track down. I am incrementing a count of a number of recommendations by upsert, and in one case our of many thousands, it seems as if the increment has failed--that is, it seems as if the upsert did not recognize the existing value, and inserted a 1 instead of incrementing by 1.
[19:53:43] <karptonite> specifically, I was incrementing inside of an object: $inc: { 'foo.bar.baz': 1}, essentially.
[19:54:01] <karptonite> with an upsert and a a search, of course.
[19:54:43] <karptonite> if it is relevant, the criteria was the _id field, but for this table, we are using just integers (userid) for the _id, not a MongoId.
[19:58:21] <jonesy> when you call createIndex(), that function populates a document in system.indexes, afaik. But it doesn't actually build the index itself. Where can I learn about how that happens? What reads system.indexes and says "oh, time to build this index!"?
[20:04:25] <jtomasrl> is it possible to change this size
[20:04:26] <jtomasrl> Please make at least 3379MB available in /data/db/journal or use --smallfiles
[20:10:23] <karptonite> For anyone who sees my question--I was wrong about how the increment failed--nothing for anyone to be concerned about.
[20:17:07] <thurmda> Can anyone help with an aggregration query? Here's my GIST https://gist.github.com/4709117
[20:48:42] <lazrahl> Using Casbah, is there a good source of info on how to handle members of the replica set disappearing from the network?
[20:49:34] <lazrahl> I'm trying to figure out how much auto-reconnect is there, if any. Or, whether I need to disconnect and reconnect?
[20:50:06] <kali> lazrahl: casbah relies on the java driver
[20:51:02] <lazrahl> So, I have mongo01, mongo02 and mongo03. if 2 and 3 die, and I'm configuring casbah to connect to 01, what do I do? When I had this come up, my app spent an hour or so trying to connect to 2 and 3.
[20:51:48] <kali> lazrahl: i'm not sure there are provision for reconnection on a totally failed replica set
[20:51:54] <lazrahl> I don't expect a total answer, I get that I need to go read...I just don't know where to start.
[20:52:41] <lazrahl> What if the config on 01 was changed such that it believed it was the only member and it was restarted?
[20:52:58] <lazrahl> Would casbah need a disconnect and reconnect?
[20:53:09] <kali> but i don't know if the driver can handle that without reconfiguring it
[20:54:13] <lazrahl> That would make sense to me. So, casbah has to disconnect and reconnect to get new meta data from the server about the replica set?
[20:55:02] <kali> well, even in a "simple" fail, with autorecovery, the driver usually let a bunch of request fail before everything is up again
[20:55:35] <kali> in the case of a double fail, i'm not even sure you can reconnect without changing the driver configuration
[20:56:41] <icenine> hi all, ive a question about the c# driver. what would be the easiest way one could imagine of copying just the indexes to another database? we're doing integration testing and i want to spin up the test db at set up, then destroy it during teardown.
[22:39:46] <karptonite> Hey, a question about findAndModify. Say I run findAndModify multiple times with w=0, returning the "old" record. is it possible that it could return a record that is not the most recently modified version?