[00:24:34] <proteneer_osx> you read from secondaries
[00:24:37] <proteneer_osx> which reduces load on primaries
[00:26:41] <jason0_> proteneer_osx: will most drivers distribute queries over multiple replicasets? For example a complex find operation that has to scan all elements, will this become distributed with replicasets?
[07:16:40] <Egoist> is someone know about shard cluster?
[07:18:24] <kali> Egoist: if the config servers are fine, queries on magic collections from the "config" database will work
[07:18:37] <kali> Egoist: but the logs are usually the go-to place when nothing is right
[07:20:46] <rspijker> Egoist: general tip, just state your problem instead of saying you havea problem and waiting for someone to respond to that. If you state your problem and someone knows about it, they’ll probably respond
[07:30:17] <Egoist> this is what i have in my mongos log: could not verify that config servers are in sync
[07:31:59] <kali> gist / paste the relevant section of the log somewhere
[08:25:15] <Egoist> is there any way to check configsvr from mongos instance, before i connect them to each other?
[09:26:05] <AlexejK> when trying to see if Mongo needs more RAM under e.g Aggregations, is looking at serverStatus.recordStats.accessNotInMemory a proper thing to do?
[09:30:28] <rspijker> AlexejK: not really… That value can just mean you are aggregating ‘cold’ data
[09:31:53] <rspijker> if you are under continuous load and you see a lot of paging in/out, then you would want to increase RAM
[09:48:14] <AlexejK> rspijker: thanks, which info i should be looking at to see the paging?
[09:51:53] <rspijker> AlexejK: you can use mongotop, only works properly in Linux though...
[09:52:02] <rspijker> in Windows you will have a slightly harder time
[09:52:10] <AlexejK> Linux here, so should be good
[10:09:39] <rspijker> a page fault basically means that mongo accesses a piece of virtual memory that is not in RAM. Which in turn means that it has to go and retrieve the info from disk and load it into RAM
[10:09:39] <AlexejK> then i think i have a problem as during the heavy operation time (the one i've seen) page faults on primary suddenly spiked to 100-150
[10:10:02] <rspijker> well… it can’t always be helped
[10:10:13] <AlexejK> understandable, all depends on data size :-)
[10:10:15] <rspijker> if you are accessing information that’s old or not used often, it’s always going to have to be paged in
[10:13:22] <rspijker> which is high but not extreme
[10:13:38] <rspijker> this was due to an aggregation you said?
[10:13:59] <AlexejK> yes, we have some aggregation jobs running.. they use both Map Reduce and Aggregation framework operations
[10:14:08] <AlexejK> maybe i should give some context on a problem im trying to resolve:
[10:15:10] <AlexejK> we have a java app that starts behaving relly sluggish and DB queries suddenly return nothing when looking up a value that has just been written to DB (at least sent to socket) and this gives errors back through our API. this only happens when these aggregations are running
[10:15:53] <AlexejK> this specific entity is read from primary to ensure we respond fastest possible back and don't wait for replication to slaves
[10:17:27] <AlexejK> basically we create a session key and this key lookup fails for us when mongo is running a big operation.. this also happens if we do a delete operation on many entries.. which partially is udnerstandable but currently my guess is that IO performance is a problem and possibly memery (not ruling out app code problem as well)
[10:34:28] <rspijker> AlexejK: hmmmm, that’s a little strange, but possible
[10:35:00] <rspijker> you could use getLastError to ensure you wait for the write to complete
[10:35:32] <AlexejK> we used write concern acknowledge from primary
[10:35:45] <AlexejK> isn't it doing the same thing inside of Java driver?
[10:35:51] <rspijker> ah, in 2.6 this was changed I see
[10:35:56] <rspijker> no clue, never used the java driver
[10:36:41] <AlexejK> have a good one and thanks for pointing me in right directions :)
[11:24:09] <narutimateum> anyone here use laravel eloquent jessenger with mongodb?
[12:25:35] <minimoo1> hey, anyone know a mongoose help channel?
[12:28:01] <Nodex> some people in here use Mongoose
[12:28:09] <Nodex> try asking your question, you might get lucky
[12:34:57] <minimoo1> i have a schema containing array of objectids, i was wondering if there is a way to remove one of the values in the array with a single query
[12:42:30] <AlexejK> humm suddenly mms-monitoring agent started complaining about "Either the server detected the possibility of another monitoring agent running, or no Hosts are configured on the MMS group." And all i did was upgrade from agent 2.1 to 2.2
[12:43:56] <AlexejK> dont have multiple agents running in that installation (however do have several different agents for my group for different server groups, but they are isolated from eachother)
[12:49:01] <minimoo1> i found this http://stackoverflow.com/questions/19786075/mongoose-deleting-pull-a-document-within-an-array-does-not-work-with-objectid
[14:08:11] <jaggerwang> I installed mms and mms-backup, there is a replica set being monitored and backuped, all is going well. But when I terminate the backup, it keeps status in teminating, and when I try to remove hosts from monitoring, it says “This host cannot be deleted because it is enabled for backup”.
[14:15:02] <minimoo1> i found out why i used $or instead of $in
[14:37:59] <AlexejK> out of curiocity, is there a reason why MMS does not allow logical grouping of server+agent combos? I mean we have several separate/isolated datacenters and want to manage them in one place.. But not it seems (i think this changed recently) we have to have 1 group per isolated datacenter
[15:17:45] <Tulsene> I begin with mongoDB and trying to perform authentification on standalone cluster and after activate auth in /etc/mongodb.conf I'm trying this command db.createUser( { user: "siteUserAdmin", pwd: "password", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } )
[15:18:20] <Tulsene> but I've this error : property 'createUser' of object admin is not a function
[15:18:59] <Tulsene> and if I try addUser instead of cresteUser I got this : Roles must be non-empty string
[15:21:58] <rspijker> Tulsene: which version of mongod and mongo shell?
[15:53:01] <Egoist> does config server for shard cluster could be a replica set?
[16:03:50] <kesroesw1yth> How can I query for documents where 1 or more objects don't have a key by a particular name, or where that key exists but is empty?
[16:04:07] <kesroesw1yth> If this isn't possible with one query, that's fine.
[16:04:36] <AlexejK> you can check if key exists with $exists i think
[16:04:49] <kesroesw1yth> I am testing with that now.
[16:05:21] <AlexejK> there is also a few"see-also" links that i think you can look into.. I think you can do it in one query with logical or
[16:05:36] <kesroesw1yth> The issue is that the documents have any number of properties which contain objects, and I need to check all of them recursively and return true if any are missing a given key.
[16:13:52] <kesroesw1yth> I can create a hash when retrieving the object from Mongo, but I can't seem to refer to its keys with foreach(keys%$hash) like normal.
[16:14:00] <kesroesw1yth> Anyways, lunch time. Thanks for the help.
[16:24:12] <AlexejK> In MMS, when i look at OPCounters, I think i understand the "getmore" graph, but what is counted in "command"
[16:24:34] <AlexejK> I see that one spiking up quite often under heavier load
[16:26:33] <AlexejK> I assume Map-reduce is counted as command?
[16:29:35] <q851> Question for you ladies and gents: I have a host running mongos that connects to my cluster. Can I update the binary while mongos is still running THEN restart the process? I need to minimize downtime while upgrading the 2.0.X mongos components.
[16:31:18] <q851> AlexejK: I believe those are internal commands for replication and such.
[16:49:55] <Egoist> could configsvr may be a replica set?
[17:40:59] <subway> Howdy... I'm in the process of taking a snapshot of a couple exsiting databases in one replica set, and seeding a fresh replicaset with them.
[17:41:45] <subway> With mongo stopped, can I safely just grab all but local.* and journal from my source data dir, and drop them into an empty data dir on the first node in my new replica set?
[18:08:38] <ddod> Mongo noob here using node native: I currently have a function that makes sure people can't use the same value of something that someone else has (e.g. to make sure every user has a unique email address). Is this possible to do in the findandmodify function by itself? I don't really understand the ensureIndex function and when I would call that.
[18:20:51] <tscanausa> ddod: ensure index just created indexes.
[18:21:47] <tscanausa> so you would create a unique email address on email address and then try to insert an error should raise when you do that.
[18:32:00] <gancl> Hi! Mongoose How to findOneAndUpdate insert new score when not exist and increase score when exist?
[19:16:46] <Dieterbe> hey, in my config i have 'noprealloc = true' and also 'journal = false', but yet when i start mongo it always tries to allocate 3GB of journal files ><
[19:25:29] <ranman> Dieterbe: can you c/p your whole config somewhere?
[19:32:36] <Dieterbe> ranman: here you go https://gist.github.com/Dieterbe/10b424f332bc0f259c92
[19:38:25] <ranman> Dieterbe: 3GB of journal files? what version of mongo?
[19:40:36] <ranman> Dieterbe: the only difference in my config is that I have a space after the config
[19:43:10] <ranman> Dieterbe: you also have two journal entries
[19:45:07] <Dieterbe> yeah when i remove one of them, same result
[19:47:48] <unkleara> Hi, I have a existing rails app using mongodb, I am building a feature with node and need to query the same database. Are their any resources to guide me how to set it up properly? Do i create a new db user for the node app or use same as rails? I tried using mongoose but I think it requires a scheme defined and I dont want it to create new collections. I just need to read from the existing database…
[20:05:03] <mistawright> hi guys i need some help. my server ran out of space due to me filling up my mongodb databases. how can i clear these databases? I cannot seem to login into mongo on the server as well
[20:06:12] <_newb> what is the best way to query if a document exists (return the id) before doing an insert?
[20:13:01] <_newb> what is the best way to query if a document exists (return the id) before doing an insert?
[21:11:50] <asido> I need to query documents by taking an average of 2 attributes in the document and compare whether it's within the bounds I want. does this sound like a doable thing with one query?
[21:12:29] <tscanausa> asido: you need an aggregation query
[21:13:00] <asido> tscanausa, I understand that, just don't have an idea how to start yet
[21:28:59] <asido> how can I perform $sum on 2 attributes inside $match ?
[21:29:17] <asido> I want to perform comparison on the result of that sum
[21:30:05] <bowtie> xdg: hi, what else can I do for you :)
[21:40:55] <John_____> hi, any with knowledge of mongoid?
[21:45:19] <asido> anyone has a clue why my $add doesn't work: http://paste.kde.org/pf7orxt6l ?
[21:58:02] <asido> is it possible to do something like this: db.coll.aggregate({ $match : { AttrInt1+AttrInt2: { $gt : 0, $lt : 100 } } }) ?
[21:58:26] <asido> what I am trying to do is to match a sum of attributes
[23:33:51] <codenado> hi all. I have a question about many-to-many relationships. I have users and groups, users can be in many groups, groups contain many users. What’s the preferred way to store that? One option is a person list within the group document, and a group list on the user document, but that means data is duplicated