[00:09:42] <justanyone> question - I'm running 3.0.7 WiredTiger w/ a 4-shard, single-replica (2copies) set. I'm dumping in massive #'s of updates/sec w/ bulk update. MongoDB starts ok, goes to 100k updates/sec (4M unique recs updated once/minute), then STOPS for several seconds with 0 records /sec.
[00:10:05] <justanyone> fine for several minutes, then .... crickets.
[00:10:50] <justanyone> then several minutes again, then crickets. QW is huge - several hundred on each shard. those drop, and then it takes updates again. what can I do to elim. this delay?
[00:11:34] <justanyone> (pretty soon, it's waiting minutes between resuming, then nothing at all.)
[00:12:03] <justanyone> I tried turning off compression of indexes/prefixes/storage, but behavior continues.
[00:12:46] <justanyone> but no go there either, so I set 'em back to 128, which is default.
[00:28:59] <joannac> justanyone: get better disks?
[00:29:21] <joannac> you have a high number of queued writes...
[00:34:39] <justanyone> IOwait is not a problem, disks are idle. SSD's are fast, no waits there. 1k iops, they can do 60k+ iops.
[00:35:22] <justanyone> I'm aware I have queued writes. I don't know how to eliminate them. These are hefty boxes - 32 cores each x 4 primaries (same with the 1 replicaset).
[00:36:46] <justanyone> I'm watching mongostat now, nearly zero (1, 2, 0, whatever, nearly 0) updates on all shards. But, QR/QW and AR/AW numbers are changing.
[00:37:10] <justanyone> where is this activity coming from? I've shut off my writers, and nothing should be happening.
[00:38:00] <justanyone> still have 870 connections to each shard, don't know why that is. I shouldn't have but just a couple.
[01:07:31] <steffan> justanyone: What FS is your data volume?
[01:16:14] <justanyone> Steffan - ext4. IO is not the holdup. Something internal is cached and stopping all updates from happening.
[01:17:04] <justanyone> I'm watching there be constantly changing numbers of QR|QW and AR|AW on each shard now, even with technically no activity going into it. Where is this activity coming from?
[01:18:14] <justanyone> IO in and out is 200 bytes to 2k range, which is confusing. and 30k to 300k outbound. But no one is connected to the mongos's.
[01:21:09] <justanyone> Just did some killLongRunningOps() over 1 second, found 4. now there's none.
[01:22:33] <justanyone> does this mean anything to anyone?
[01:24:31] <justanyone> Can I, from a central point, kill all connections?
[06:15:47] <troypayne> anyone here ever use $geoWithin? I have a collection of documents that have lat/long data. I want to query the things that are inside of a 10 mile radius from a center lat/long. Can someone point me in the right direction?
[06:55:53] <troypayne> if i can’t use $where as an aggregate pipeline stage, then what the heck
[07:04:24] <Upgreydd> Hello i have a question. I'm using mongodb with mongoose. I want to save document with nested document via Schema.Types.ObjectId. Is there a way to "update or if not exist create" sub documents?
[08:20:22] <troypayne> nm i figured this shit out myself
[10:21:55] <Zelest> My entire database is 5.2GB and my data directory is 8.2GB.. yet, my mongod is allocating and locking around 24GB.. why is that and how can I prevent this?
[10:22:16] <Zelest> mongodb v2.6.x and freebsd 10.x
[10:33:02] <Derick> doesn't look like we make freebsd binaries...
[10:33:16] <Zelest> i'll build a CDN soon-ish.. then I'll run it on Linux :)
[11:54:18] <Upgreydd> Can someone can tell me what is the best option to save a document with nested/populated (relationship) documents? I think first of all i need to save all nested docs before i save main doc? Or is there a way to save whole document with relations in one save?
[11:55:23] <StephenLynx> you just save the document at once.
[11:55:23] <StephenLynx> sub-documents make no difference.
[11:55:34] <Upgreydd> Stephen byt my subdocuments are in other schame
[11:55:42] <StephenLynx> then they are not sub-documents.
[11:55:47] <StephenLynx> and there are no schemes.
[11:56:11] <Upgreydd> StephenLynx: I'm talking about mongoose ;) sorryt
[11:56:12] <Upgreydd> And one more thing, how about edit? I can have shuffled new subdocuments and old subdocuments. Is there a way to do something like "when no id - save, when id - update"?
[11:56:23] <StephenLynx> I strongly suggest you don't use mongoose.
[11:56:34] <StephenLynx> and in the end, as far as mongo is concerned, schemas do not exist.
[12:02:24] <StephenLynx> I know that for example, if you use $push, an array will be created if it doesnt exist on the document.
[12:03:30] <StephenLynx> so probably if you use something like $set:{'a.b':1}, an object called a will be created as a subdocument so mongo can be able to set the field b of it.
[12:03:45] <StephenLynx> but I am not 100% sure of that.
[15:11:26] <nerder> i'm wondering why this return undefined: var a = db.getCollection('product_category').find({_id: ObjectId("566aa2520b4fd17e070854d3")}); print(a._id);
[16:04:50] <nerder> cheeser: i see doc.parent.$id is already an ObjectId
[16:05:10] <cheeser> i'm not sure what you're asking
[16:05:35] <nerder> so it dosen't need to be called as ObjectId(doc.parent.$id), but findOne(_id: doc.parent.$id) can be enough
[16:06:01] <nerder> i was asking why my query dosent work fine, but i found out by my self :)
[16:37:50] <watmm> Trying to find out what versions of mongo a certain doctrine dbal version supports?
[16:43:57] <Derick> watmm: do you have a slightly more specific version in mind?
[16:45:04] <watmm> I want to upgrade to the current mongo 3.2, and i know what version of doctrine the devs currently use (orm 2.4.8, dbal 2.4.4), but i can't find a page detailing whether the two will work
[16:57:37] <jmikola> if you're thinking of doctrine/mongodb and doctrine/mongodb-odm, those should work with mongodb 3.2 -- although the legacy driver they use (ext-mongo) hasn't been updated with the bypassDocumentValidation option for 3.2 (nor does ODM support it)
[16:57:57] <cheeser> and that's not really a blocker
[16:58:11] <cheeser> unless, of course, you want ot use that feature :)
[16:58:36] <Derick> cheeser: the legacy driver won't support it either
[16:59:02] <cheeser> we're debating morphia support for it.
[19:13:37] <troypayne> anyone know if there are predefined $geometry JSON objects that represent regions like New York City, Los Angeles, San Francisco, etc
[19:54:31] <bjpenn> anyone know how to determine the time it takes to build mongodb indexes?
[20:09:36] <kali> bjpenn: you can check the progress in db.currentOp() or your server logs
[20:17:35] <bjpenn> kali: checking the "progress" thats assuming one is being built right now right? im not sure if one is being built. what i meant was how to determine how long it would take to build if i wanted to restore data from backup and build one