[00:24:41] <GuiPoa> what is the best way to improve IO? Setting w to 0 is gonna help?
[01:17:16] <VooDooNOFX> GuiPoa: Measure, then implement.
[01:21:17] <GuiPoa> VooDooNOFX, yes, im gonna measure with w=0, but i would like if theres anything else to do..
[01:21:45] <VooDooNOFX> Well, why do you believe you have poor io now?
[01:27:02] <GuiPoa> I dont. I have a high volumn right now. I need to decrease it.
[01:30:19] <VooDooNOFX> In my world, I don't prematurely optimize. I would recommend you don't do it either.
[01:59:58] <GuiPoa> VooDooNOFX, i did not understand. Now I have a high usage of IO. I should decrease it. Im looking for some strategies.
[02:02:42] <VooDooNOFX> GuiPoa: Ok. So we're back to my original question. What is telling you that your IO is too high?
[02:05:46] <GuiPoa> I have a chart (semon) showing the usage. Besides that, my system went down...
[02:07:00] <GuiPoa> But i really dont know if set w=0 is gonna improve IO.
[02:10:37] <VooDooNOFX> GuiPoa: Neither do we. That's not enough information to help you. I can offer some basic suggestions, but without knowing why it failed, or what type of queries you do, I cannot offer anything specific.
[02:10:57] <VooDooNOFX> GuiPoa: Most of the time, you need to optimize your queries, not your database.
[02:11:14] <VooDooNOFX> Also, you should track mongoDB performance with MMS (free).
[02:11:32] <nicken> any suggestions for mongodb web interfaces?
[02:32:03] <retran> they store their videos and photos (press kits, resumes) with us, organized by actor, and rep agencies can send out custom "profiles" (mini websites) they create real quick
[03:45:47] <retran> only used javascript and php interfaces to mongo
[03:55:46] <VooDooNOFX> nicken: you shouldn't be querying for a document, modyfying it in your code, then resaving it. Instead, use $set, with an upsert=True
[04:03:12] <VooDooNOFX> documents can change in the short time from query to update. So, do it all in the db, and it'll get a lock, modify it and remove the lock
[04:03:13] <nicken> so, by using set, it doesn't replace the entire document? only sets the specified attributes?
[04:14:33] <retran> if i see you often here, we should grab beer sometime
[05:23:03] <Garo_> Hello. I'm having issues recovering one replicaset member from a snapshot. After starting mongodb it reports that it starts recovering from journal files, but it will soon stuck with no additional output (check this gist https://gist.github.com/garo/73b16d25da92bc9b184c). stracing the mongodb processes shows two pids stuck in some kind of mutex wait futex(0x1b50264, FUTEX_WAIT_PRIVATE, 1, NULL^C <unfinished ...>, one stuck ...
[05:23:10] <Garo_> ... on an infinitive getcwd("/", 128) = 2 loop and one stuck in this: rt_sigtimedwait([HUP INT USR1 TERM], NULL, NULL, 8^C <unfinished ...>
[05:23:50] <Garo_> any ideas? The snapshot should be consistent as it's done by first freezing an LVM volume, then snapshoting the underlying EBS volumes. Restore is done by lvmerging the snapshot onto the lvm volume.
[05:36:05] <greybrd> hi can I concat two BasicDBObject or append and entire BasicDBObject to an other one?
[05:49:18] <greybrd> can I concat two BasicDBObject or append and entire BasicDBObject to an other one?
[06:09:38] <greybrd> can I concat two BasicDBObject or append and entire BasicDBObject to an other one?
[10:17:40] <Zelest> unless you've saved it inside the db! :D *trololo*
[10:39:00] <shangrila> then how mongo determines which version the data is in ?
[10:40:02] <Zelest> has the data structure changed much between the last versions?
[10:44:29] <Nodex> shangrila : mongo data doesn't really need to know the version
[10:44:36] <Garo_> Well this is new: I resized one of my replicaset member oplog size according to this guide http://docs.mongodb.org/manual/tutorial/change-oplog-size/ and ended up with the following crash: https://gist.github.com/garo/c928b9c4a999ab250e5c
[10:49:12] <pinvok3|2> Good day. I try to compile the cpp mongo driver. I successfully compiled the driver and tried to put it into my Qt package. I was able to get rid of the most linking problems, but I still get one "undefined reference to `mongo::DBException::traceIfNeeded(mongo::DBException const&)'" What could be the problem?
[11:53:18] <ddssc> complete mongo noob here. how do we know in mongodb if there are write errors ? how realiable is it? I see people use mongo for ecommerce these days.
[11:53:40] <ddssc> is it safe to keep any sort of transaction data in mdb?
[11:55:20] <kali> noqqe: can you paste a db.collection.printShardingStatus() somewhere ?
[12:35:23] <kali> noqqe: i've never had to deal with one, but maybe someone here can help
[12:36:16] <noqqe> kali: okay! thats at least i point where i can start reading! thanks!
[12:36:25] <kali> it's weird, because you're sharding on _id... i'm not sure how it can happen
[12:40:00] <ddssc> Nodex: I dont need guaranteed transactions but I'd like to keep a big key/value table with hundreds of millions of entries for reporting purposes. I understand mdb is quite fast when it comes to searching.
[12:41:41] <noqqe> kali: it was some kind of performance test. just writing the same object everytime on my cluster from 16 servers with pymongo scripts in it. they were 8 mio writes within 16minutes
[12:42:29] <noqqe> kali: i only did acknowledged (w=1) on write concern, maybe this is the problem.
[12:50:26] <kali> noqqe: i'm not sure it can make a change there
[12:52:24] <kali> noqqe: just an idea... what version of mongodb are you running ? and you're positive all nodes of your cluster run the same version ?
[12:53:02] <noqqe> yes - i just looked into mms :) all the same version
[12:53:39] <noqqe> i have some knowledge gap in jumbo chunks. i have to read some docs at first now :)
[12:54:47] <kali> noqqe: i'm doing the same, because i'm curious how it could happen with a fine-grained key (_id: hashed)
[12:55:38] <kali> noqqe: maybe the high rate of insertion grew a jumbo chunk while the balancer was busy splitting/moving another part of the collection
[12:57:41] <AlecTaylor> Are there any plans to maintain the Windows Azure worker project? - https://jira.mongodb.org/browse/AZURE-137
[13:59:47] <mcr-credil> Is there a way to have .drop(), simply wait rather than saying: "errmsg" : "exception: collection's metadata is undergoing changes. Please try again."
[14:59:38] <tscanausa> is there a preferred option to securing mongos to mongo config and mongod?
[15:24:07] <Soothsayer> I want to track activity stream of a Customer Session on my e-commerce site.. Should I be storing a list of all activities/events performed under One document per Customer Session or one entry per activity/event?
[15:24:29] <srcspider> if you have a tree structure that is very frequently written to and read from and also might branch out for 1000 of nodes in any direction is that just a nightmare to manage using mongodb as opposed to a traditional relational database?
[15:56:05] <tkeith> I have a replica set with 3 members. How can I remove 2 so there's just one server left?
[15:56:23] <tkeith> preferably in a way that I could add them back in later easily
[16:00:57] <skot> Why are you removing them? One option is just to reconfigure to one member (removing both at once).
[16:36:57] <rafaelhbarros> is it bandwidth or IOPS that you're trying to reduce?
[17:01:19] <vparham> More specifically, is there anyone who is running an alternate BSD/rc startup script for mongo in prod than what's provided in the port?
[18:23:05] <visually> hello -- i have been experiencing a continuous rise in background flush time as well as a correspodning rise in io wait time which appears to be negatively impacting performance of my app/causing us to drop data
[18:23:21] <visually> is there anything i should know in particular to diagnose the issue
[19:04:58] <proteneer> why do queries have read locks?
[19:08:52] <cheeser> writers needs to know there are readers in the mix before locking things up.
[19:09:07] <cheeser> helps the system balance read vs write requests
[19:17:46] <traplin> how would i perform an update, where it adds an object, to an array of objects, if it doesn't exist? i also want to create the array when this runs, if it doesn't exist already
[20:22:07] <traplin> i have another question. so i have two collections: friends and users. is it possible to do a query, that searches both collections, and finds all documents that appear in both?
[20:53:44] <NaN> any workaround to do text search?
[20:55:13] <aGuest> anyone have a recommend amount of memory for running mongo on ubnutu server, and that is only thing that server would be running? Database should not reach more than a gig, at least not for the first 2 years
[22:03:47] <skot> people do that all the time; but it requires your app being able to handle stale reads, and/or paying the cost for cross-region operations.