[06:37:12] <joannac> so you don't have enough RAM to support your working set
[06:37:57] <odigem> for work enough , but need somethimes reboot mongo server
[06:39:59] <joannac> odigem: if you have 8gb of data you need to use for daily work (queries, inserts, whatever), and you only have 8gb of RAM (that you need to share with the OS and other processes), you don't have enough RAM to support mongodb, and you're going to be swapping all the time
[06:40:35] <odigem> I can not just leave it all for a long time without stopping prismotra.nado workflows and restart mongo
[06:40:38] <joannac> you can either reduce your working set (by eliminating unneeded indexes, etc), or you can periodically restart and start paging in again from scratch
[06:41:38] <odigem> by eliminating unneeded indexes, etc can more detail?
[08:37:43] <fdf> Hi, I have sharded 3 nodes cluster with 2 replica sets when i run sh.status i can see partitioned:true but in chunks: i can see only one set is it ok ?
[09:16:57] <k_sze[work]> I'm getting 'not master' error when I try to mapReduce
[09:54:16] <k_sze[work]> I'm trying to perform an inline mapReduce and mongo still gives me 'not master' error.
[12:51:51] <izolate> new to mongo. is there a default user/pass?
[12:52:28] <Nodex> Lujeni [13:44:30] <Nodex> normally you can't multiple things on the same key/value in a single update. However, some of this changed in 2.6
[13:19:04] <joannac> the replSet parameter has to be the same for all 3
[13:19:14] <joannac> that's how they know they should be in the same set
[13:20:05] <jinmatt> joannac: oh I see, I thought they were used to identify each replica set member
[13:20:34] <jinmatt> joannac: thanks for pointing out, I’m pretty much new to mongo
[13:30:05] <leotr> Hello. I have a question. Imagine that we created new collection and filled it with N docs with `a` key equal to k for k from 1 to N. After that we do find() on that collection and slowly iterate over it (using sleep(1 sec) in cycle and print `a` value). During that we remove all docs with even `a` key values. What will be in output of iteration?
[13:33:57] <Nodex> Cursor Isolation: Because the cursor is not isolated during its lifetime, intervening write operations on a document may result in a cursor that returns a document more than once if that document has changed. To handle this situation, see the information on snapshot mode.
[13:34:09] <Nodex> that too ^, it has a "snapshot mode"
[13:49:34] <Lujeni> It's better to make two update with only an $inc for each update or 1 one update with the full document ?
[14:00:13] <cocotton> Hi everyone. I'm really new with mongo and I have the feeling I might have broke something. We have two cluster over here with 3 shards each. 1 primary, 1 secondary, 1 secondary (hidden). We needed to increase the disk size on each machine so following a procedure I've been given, I shutdowned a secondary node in each cluster, removed the disk on both machine, added a bigger one and started the machine again, creating the physical volume
[14:00:13] <cocotton> and everything else. Both the nodes seems to have joined the cluster without problem, they started synced. Now they seem to be done with the syncing since their stateStr is 'Secondary' and they have the same optime/optimeDate as the other one. Problem is, if I df on my machine, I now have less the space taken as before I removed the disk. It went from 200 ish Gb, to 89...
[14:00:46] <cocotton> I really feels like something's wrong here, but since I know almost nothing about mongo, I just want to make sure by asking you all
[14:03:30] <skot> No, that is not nec. a problem. When you build a new node like it compacts and removes dead space from the old db. So if you deleted collections or doc that would result in smaller nodes when adding new ones.
[14:04:18] <skot> You can check the db.stats() for (logical) counts and things.
[14:06:09] <arrty> my data is totally relational but i want to use mongodb anyways because of its schemaless nature and powerful querying system. am i going to regret this?
[14:06:10] <Waheedi> how can i force a replica set member to be primary if there was no other instances but it
[14:08:26] <cocotton> skot: Sorry got disconnected. Wow that is actually pretty nice. Is there a way to force a "cleaning" job rather than increasing disk size?
[14:09:18] <bob_123> hi all, I have a question: I'm on ubuntu 12.04 and doing `sudo apt-get install mongodb-10gen` only updated me to 2.4.10, so to go to 2.6.0 I did this `apt-get install mongodb-org=2.6.0 mongodb-org-server=2.6.0 mongodb-org-shell=2.6.0 mongodb-org-mongos=2.6.0 mongodb-org-tools=2.6.0`, I upgraded to 2.6.0 but now mongo no longer sees my database data, is there a way to get it to see my data again?
[14:09:43] <bob_123> I know the data is still on disk but mongo doesn't see it
[14:11:30] <rspijker> cocotton: it's to do with how mongo stores stuff on disk
[14:11:45] <rspijker> you can force cleaning by doing a db.repairDatabase()
[14:11:59] <rspijker> but that's not recommended in production
[14:12:27] <rspijker> it can get very bad though, I had a situation in production where a <1GB data set took up 200GB
[16:01:59] <bushart> Derick: This is a problem all databases?
[16:03:34] <bushart> Derick: I have 60 million records, which must be sorted and grouped. All these numerical. You did not hear about the tools that could help me?
[16:03:57] <Derick> bushart: hwo many items after the group?
[16:34:34] <tongcx> skot: it directly works with mongodb, but does it works with bson?
[16:35:52] <skot> you would have to use the mapper interface to do the conversion and load bson streams into special DBObjects which wrap the bson, but possible without much more.
[16:47:40] <pasichnyk> how are people finding stability on 2.6.0? I'm on 2.4.9 now, and trying to decide whether i should move to 2.4.10 or 2.6.0. Any feedback is appreciated.
[16:49:23] <skot> I'd wait till the 2.6.1 release if you think you might hit any of the known 2.6.0 bugs, but otherwise it seems pretty stable :)
[16:54:21] <pasichnyk> skot, thanks for the heads up. Scanning through the bugs, it looks like this one is a show stopper for us: https://jira.mongodb.org/browse/SERVER-13516
[17:11:54] <outcoldman> Hi folks, what is the best approach to optimize performance of quires like {start:{$lte:600005}, end: {$gte:600005}} ?
[17:21:23] <kali> it depends on the driver you're using, and chances are it's not supported yet
[17:23:05] <outcoldman> any thoughts on {start < 6000 < end} type of queries? index on {start,end} does not really fix the problem. This query still scan everything in index which is > 6000
[17:23:27] <cheeser> all the latest drivers should support allowDiskUse
[17:23:51] <cheeser> all least all the mongodb supported ones
[17:50:31] <BadHorsi1> http://pastebin.com/64bddzmF getting that strange behavion... seems like [{a:1},{a:2}] is becomeing [object Object] at some point...
[17:57:31] <sumaxi> cheeser: It made no difference unfortunately. :(
[17:58:00] <kali> sumaxi: wait. age ? is that a field in your documents ?
[17:58:40] <sumaxi> kali: Isn't it automatic? With http://docs.mongodb.org/manual/reference/operator/meta/orderby/ it's like it's a automatic value made by mongoDB, right?
[18:06:37] <sumaxi> cheeser: thanks, I didn't realize that
[18:08:30] <kali> sumaxi: ObjectId generated by different client in the same second may be in the wrong order. but if they are more than one second apart the order will be fine
[18:09:36] <sumaxi> kali: Ah, that's why you said approximate. :)
[18:10:41] <BadHorsi1> Argh. "It's the use of 'type' as a property name", well that's nice :)
[18:10:45] <Chaos_Zero> so, assuming a really far out idea, where I wanted more secondaries then 11, is their any other known method?
[18:22:39] <skot> Chaos_Zero: not really without recompiling to change the limit. There will (probably) be support for more than 12 in the next release or so (2.8/3.0) — https://jira.mongodb.org/browse/SERVER-3110 — watch to see the progress in the next few months.
[18:45:50] <hotch> I’m trying to understand better the size of my mongodb db. On a dump, the folder ./dump is 34mb. Nothing seemily. on db.stats(), what are the units (kb/mb/?)
[18:47:45] <hey`ladies`> I've got a document that has been corrupted. it now has multiple identical keys. This seems to indicate that that should not be possible: http://docs.mongodb.org/manual/core/document/
[18:48:12] <hey`ladies`> any advice for deduping that collection? any idea how this can happen?
[18:49:40] <hydrajump> hi would mongodb be the wrong database to use with a dovecot email server?
[18:49:42] <cheeser> do you have unique index on that field?
[18:52:08] <joshua> hydrajump: It looks like some people were trying it out last year http://www.dovecot.org/list/dovecot/2013-April/089405.html
[18:52:19] <hey`ladies`> cheeser: no. but this isn't the problem of having the same value in multipl documents. the problem is having multiple of the same key in a single document
[18:58:13] <hydrajump> joshua yeah doesn't look too promising. I'll try asking on #dovecot ;)
[19:09:01] <bob_123> hello, quick question for anyone using mongoskin on node: does the latest mongoskin support aggregate cursors for mongo 2.6 and I just can't find them, or are aggregate cursors not supported yet?
[19:09:14] <bob_123> I've been doing some googling but haven't found a definitive answer
[19:23:12] <bob_123> does any node.js driver for mongodb support aggregate cursors?
[19:23:44] <cozby> hi, I've been following the mongo docs however after adding/creating an admin user any action I take using the admin user gives me the error "Error: not master at src/mongo/shell/db.js:1260"
[20:24:45] <wc-> my query looks something like db.blah.findOne({"filings.injection_records": {"$elemMatch": {"std_date": ISODate("2013-05-01T00:00:00Z")}}})
[20:25:16] <wc-> is there a way to get just the element in the array that matched my result?
[20:26:09] <boutell> Hi! I’m using the node mongodb-native driver. How can I get the version number of the server I’m talking to? I need to know if the new-style $text operator is gonna work. Thanks!
[20:34:59] <simpleAJ> I was wondering if anybody knew the storage that is needed to store a collection..possibly empty collection or just 1 or 2 2-4Kb documents each
[20:46:24] <excalq> Would be nice to have an update to http://api.mongodb.org/c/current/tutorial.html for 0.94
[21:05:08] <fresh2dev> hello, i'm trying to drop a database in 2.4 but it's always unauthorized. i have an admin user setup in the admin database with userAdminAnyDatabase. how do I grant myself permissions to drop a database?
[21:07:29] <fresh2dev> (seems not immediately obvious)
[21:08:59] <cozby> I without thinking restarted my replica master and now I can't even launch the mongo shell to connect to it
[21:09:09] <cozby> let alone start up the mongod proc agian
[21:10:10] <cozby> what do you do in this situation, I didn't follow the proper replica shutdown/restart process
[21:16:22] <daveops> cozby: is it throwing an error at you? what's in the logs?
[21:17:44] <cozby> 2014-04-17T21:15:51.349+0000 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 10.0.2.110:27017
[21:17:44] <cozby> 2014-04-17T21:15:51.349+0000 [initandlisten] ERROR: addr already in use