[00:25:22] <sillyquestion1> <assuming I know that this is under any normal conditions extremely undesirable> How can I run mongod as root instead of mongodb?
[00:28:30] <sillyquestion1> <boot2docker is reeking havoc on my mapped drives that work perfectly well in production, necessitating drastic changes to the developer backend vm(only ever used for testing)>
[00:36:50] <sillyquestion1> it's not a mongodb problem specifically, it's just that in the current version of boot2docker, the directories I mount are only writable by root.
[00:42:59] <sillyquestion1> this just works in linux
[00:43:05] <GothAlice> If you use a package manager, like homebrew, it'll "do the right thing" and provide a launchd hook that runs mongod automatically.
[00:43:32] <sillyquestion1> GothAlice: I'm using a docker backend vm
[00:43:54] <sillyquestion1> that works in Linux for the sane devs who use a linux box.
[00:44:06] <sillyquestion1> the others are using macOS
[00:44:34] <sillyquestion1> and when they load the backend VM, due to a documented issue, the mapped db dir becomes read-only to all but root
[00:44:36] <joannac> sillyquestion1: it doesn't? error?
[00:47:52] <GothAlice> … also, is your data really in /data/db?
[00:48:15] <GothAlice> (I ask because that's mongod's default location, and that's usually a sign of not passing any configuration to mongod at all… it doesn't read config files by default.)
[00:48:25] <sillyquestion1> GothAlice: yes. it's mounted there in Docker
[00:48:47] <sillyquestion1> there is no config file in use at all atm
[00:48:53] <joannac> sillyquestion1: I'm not sure what you're asking
[00:49:02] <joannac> it does work if you run sudo mongod ... ?
[06:39:46] <tucker_> planning to store data for millions of users, what is the best approach to store each user's data: is it a collection per user, database per user, or I can store all users data in a single collection, probably to be able to make aggregation operations on
[06:40:36] <tucker_> users data may include files, will that change any thing
[06:42:37] <tucker_> I'm new to Mongo, so hopefully I'm asking the right questions
[07:00:11] <tucker__> anyone can help with the above question?
[13:25:45] <Cruelio> Hi there, im all newe to mongodb. I have created and saved a funtion to system.js the function is fetching a result from a collection, and if i run the function from db.eval, everyting turns out perfect. However if i use the function in a $where i get a "error: { "$err" : "ReferenceError: db is not defined", "code" : 16722 }"
[14:42:37] <teckays> hi there, I have a problem setting the maxIncommingConnections for my mongodb process, I ran ulimit -n 1000000 and restarted mongo but the last ping on MMS shows that connections.current + connections.available is always (default) 819, any ideas?
[15:10:29] <user123321> In replication, when a slave DB becomes the master, how do clients know the new IP address of the master DB? Does it happen automatically?
[15:11:31] <bazineta> They get that info communicated to them frequently, the initial connext string is just a seed. When a new master is elected, they see the change automatically.
[15:13:17] <user123321> Suppose the clients connect to the DB with IP 192.168.1.2:27017, and the replication DB as 192.168.1.3:27017. When the 2nd DB becomes the master, it's IP is still 192.168.1.3, right? What would happen when the clients continue to connect to 192.168.1.2?
[15:14:04] <bazineta> They get informed that .3 is the master
[15:14:52] <user123321> bazineta, The clients get informed? Gosh, does it mean that my client apps need to change the code? They're all configured to connect to a particular IP address :/
[15:15:42] <bazineta> Here, think of it like this. When you go into the mongo shell and do 'rs.status()', it tells you who the master and secondaries are, right?
[15:15:45] <teckays> hi there, I have a problem setting the maxIncommingConnections for my mongodb process, I ran ulimit -n 1000000 and restarted mongo but the last ping on MMS shows that connections.current + connections.available is always (default) 819, any ideas?
[15:15:57] <bazineta> So do you thinkg for some reason it's keeping that information a secret from the clients? ;)
[15:16:28] <user123321> bazineta, Oh I see, I was wondering if the clients would get "cannot connect to 192.168.1.2"
[15:16:54] <user123321> So they will end up connecting to 192.168.1.3 anyway, right?
[15:17:47] <cheeser> when you give MongoClient an address (or a list of addresses) that's the just the seed address. once it's connected, it can ask the cluster about it's topology and identify the current primary
[15:18:11] <bazineta> user123321 They'd get that if that was the only IP you provided them with, and the node was down. Typically in your connect string you give it all the IP addresses of the replica set, or at least a representative sample of nodes where at least one will be up. The clients get the RS info from any node they can connect to -- the connect string just 'seeds' them with ones to go
[15:18:11] <bazineta> ask first, after which the clients monitor the state of the RS themselves, automatically.
[15:19:32] <user123321> bazineta, Cool, I've missed giving all the IP's :p
[15:19:58] <bazineta> user123321 Then I feel that Good has been done here this day. Booyah!
[18:34:05] <peterp> Hi everyone, is it possible to have an object literal in your schema? Eg: availability: { day: 04, month: 03, year: 2014 }
[18:48:31] <bazineta> Curious if anyone with data in AWS has investigated I/O tuning with the new I/O size factors for PIOPS and SSD volumes. That is, I think that the canned AWS server instances were tuned for 16K I/O sizes, but now AWS does 256K as the default. http://aws.amazon.com/blogs/aws/enhanced-ebs-throughput/
[19:14:17] <bazineta> GothAlice Goodness yes, MMS is a bargain at any price. We use both the monitoring and backup.
[19:14:51] <GothAlice> bazineta: :D (These days it can even set up and manage your cluster for you, which is Extra Nifty™.)
[19:16:35] <bazineta> GothAlice Yes, recently activated for our account, haven't looked into it much. The SalesDroid did indicate that a rebuild was required to take advantage of it.
[19:17:04] <GothAlice> Yeah; automation always has certain assumptions that need to be met.
[19:17:20] <bazineta> GothAlice which I presumed to be the usual add new replicas and remove old ones.
[22:00:40] <HardyK_> Can anyone point me to any resource explaining the difference between Safe Mode and different levels of Write Concern in MongoDB?
[22:02:17] <kali> Boomtime: safe mode is the old wording
[22:03:13] <kali> Boomtime: iirc, it is know equivalent to the default "acknowledged" level
[22:05:22] <HardyK_> kali: it makes sense now. I'm reading docs of some MongoDB drivers and they use the old wording. Seems that "safe mode on" means { w: 1 } and "safe mode off" means { w: 0 }