[09:04:32] <iiro> Hi everyone. About locking the Mongo with fsynclock when doing backup - the Mongo's official documentation (between versions 2.2 and 3.0) that there's no need for that when doing mongodump - but the current documentation for 3.X versions says nothing about this. What is the truth? And sorry - fi this a very common question - again...
[12:38:12] <wasanzy> I already have two servers which have replica set. I want to add another server, how do I do that? already have the server installed
[13:13:03] <TheThing> okay, I have to ask... WHY does db.mycollection.find({}).sort({ _id: -1 }).limit(1) not return the last id? If I grab the result from the _id and do db.mycollection.find({ _id: { $gt: '<id_here>' }}).count() I get a whooping 1477000 results. How do I get the last id in the collection????
[13:16:14] <TheThing> http://imgur.com/a/bDZrg like, this should work but it isn't
[13:21:26] <TheThing> I've rebuilt the index, I've done everything and it still doesn't return the correct response
[14:29:48] <GothAlice> Welp, never mind my reply. :/
[14:30:41] <GothAlice> kurushiyama: A "cluster" is a general term for any group of networked computers acting together for some goal. A shard is a type of subdivision (way of organizing part) of a cluster, similar to a replica being a different subdivision of a cluster.
[14:32:11] <kurushiyama> @cheeser Wouldn't an unsharded deployment of multiple servers just be a replset?
[14:39:29] <GothAlice> kurushiyama: A "mongodb cluster" is simply two or more nodes (VMs or physical machines) configured using any of the individual mechanisms, e.g. sharding, replication, or even just a mongos in front of a mongod. A replica set is a type of cluster, a way of organizing nodes within it.
[14:40:16] <kurushiyama> @GothAlice Ah ok. Then I used the terminology wrong thus far. Thanks for the update!
[14:46:01] <GothAlice> kurushiyama: Other examples include: render farms (a cluster dedicated to the math necessary for 3D → 2D projection + rendering), physical simulation clusters (e.g. in the pharmaceutical industry, or even Nvidia simulating the molecules in their GPUs), storage clusters (like Backblaze Storage Pods or other multi-machine NAS), …
[14:46:38] <kurushiyama> @GothAlice Well, I am aware of that. Maybe my approach to terminology is to context-based ;)
[14:46:40] <GothAlice> distcc lets you build a compilation cluster (distributing GCC "cc" calls across multiple machines), etc.
[14:47:11] <kurushiyama> Yeah. LFS with distcc... ...that was fun...
[14:47:35] <GothAlice> :P -j 192 is a glorious thing to behold! Kernel compile from depclean in ~45 seconds.
[14:48:04] <GothAlice> Literally took a new Ubuntu box longer to download the kernel binary and apply it, than for my Gentoo (scripted LFS) to compile one from source. XP