[06:08:10] <george2> I'm planning on doing some benchmarks, but maybe someone here already knows - When serving files from GridFS using Apache/nginks modules, is this generally faster or slower than just serving the files from disk?
[06:08:43] <george2> This would just be for static images, if that matters.
[08:21:49] <omid8bimo> hello, i asked this yesterday but i still have issues. i need help. my secondary mongo server crashed and i had to do a brand new install and sync from master in replicaSet
[08:22:10] <omid8bimo> but when i start the new mongo on the new server, either its not syncing the data or its too slow
[08:22:14] <omid8bimo> here is the log - http://paste.debian.net/78254/
[08:22:21] <omid8bimo> can anybody tell me what is going on?
[09:10:53] <Gargoyle> probably just while the server starts up and allocates space, etc.
[09:12:59] <omid8bimo> Gargoyle: would you mind taking a look at my log output and tell me if something is wrong?
[09:13:13] <Gargoyle> omid8bimo: You might be best trying to investigate what's going on on line 230. I'm not sure what that means but google / someone else here might.
[09:14:14] <omid8bimo> Gargoyle: ok, so problem might be a collection or a document?
[09:14:38] <omid8bimo> also on the line 228 says "fastsync: skipping database clone" ! this mean the entire data replication was cancelled?
[09:14:49] <Gargoyle> Could be. It's a bit beyond me.
[10:13:46] <omid8bimo> kali: mongostat sounds good. any specific?
[10:28:51] <NyB> kali: I finally managed to multiplex two cursors from two different threads... the results were disappointing, although I do not yet know why...
[10:30:31] <NyB> I do have a few suspicions though...
[10:57:59] <crashev> hello, the installation on Debian 7.3 seems to be broken -> http://pastebin.com/4LmTf9V6 [packages from http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen]
[11:00:17] <NyB> is it possible to use the $mod operator with multiple remainder values somehow? E.g. to select documents where the remainder of a field divided by 5 is 1,2 or 3?
[11:01:01] <NyB> or would I have to resort to complex queries with logical operators?
[11:49:33] <omid8bimo> can somebody tell me how does mongo's replicaSet replication based on oplog works? (a link or something would be useful)
[11:50:15] <omid8bimo> i mean like when a secondary stops working, how master knows how much data must be sent to secondary? and how to know since which transation?
[12:05:23] <Gargoyle> omid8bimo: Pretty sure you'll get there if you keep digging. :)
[12:06:11] <Gargoyle> And unless you are planning on actually developing mongodb, why do you want to know?
[12:09:28] <Gargoyle> omid8bimo: But from what I've interpreted so far. When the secondary comes back online, it will request oplog data from its last know position.
[12:09:57] <Gargoyle> If that position is still in the primary oplog, then replication starts.
[12:10:17] <omid8bimo> Gargoyle: since i came from MySQL background, i just need to know how the replication based on oplog works. like if i unplug the secondary and according to master's "db.printSlaveReplicationInfo()", secondary falls behind for like 4000 seconds, how does it know from where to begin?
[12:10:31] <Gargoyle> otherwise, a full database resync is required.
[12:17:24] <omid8bimo> kali: really? then how will secondary know where to begin the catch up if the local files are corrupted?
[12:18:51] <Gargoyle> Right, after 18 months away from mongo setup, I have a test RS up and running! :D Time for some shopping.
[12:19:04] <kali> if the local files are corrupted, you want a full resync anyway. so the secondary look at the time, starting pulling data from the primary (or a running secondary) and apply oplog starting at the point where it started fetching data
[12:33:12] <omid8bimo> kali: ok thats a good information
[13:24:58] <Gargoyle> Ughhhh. I picket the wrong time to goto the shops...