[06:20:18] <KekSi> does anyone know how to limit the logspam in a cluster? the --quiet option doesn't seem enough
[06:20:37] <KekSi> query routers and config servers each write logs every 10s
[06:23:11] <KekSi> it looks to me like debug output and not necessarily useful for production (on query routers: balancer round started, ended and did nothing, LockPinger being successful)
[06:23:36] <KekSi> and on config servers a lot of this: 2015-09-17T06:17:26.010+0000 I STORAGE [conn3] CMD fsync: sync:1 lock:0
[10:24:43] <joannac> mitereiter: have you read the docs? http://docs.mongodb.org/manual/core/capped-collections/
[10:24:57] <joannac> "If the size field is less than or equal to 4096, then the collection will have a cap of 4096 bytes. Otherwise, MongoDB will raise the provided size to make it an integer multiple of 256."
[10:26:34] <joannac> vagelis: $elemMatch will let you project out a specific array entry. both should use the index though
[10:27:50] <vagelis> joannac well im reading in stackoverflow how u might not hit the index and im trying to filter queries in python that dont have an index and im kinda confused with this elemMatch
[10:44:56] <mitereiter> sorry joannac, I did view the doc page, but i searched for a syntax error not for a limitation
[10:47:12] <mitereiter> wait i viewed the convertToCapped doc page, it didn't mentioned that there
[10:48:48] <mitereiter> is it posible that I cant pass a max parameter by converting an existent collection to capped collection?
[10:49:16] <mitereiter> the doc doesnt mention the parameter, but the shell accepted the command
[10:49:33] <mitereiter> and did not applied the max parameter
[10:57:34] <vagelis> I query an array which has this form: MyArray: [1,2,3..] and i query like that: { MyArray: 2 }...... Shouldnt in explain says that it was multikey? Why it says false?
[11:03:37] <mitereiter> do you already have an array in that field?
[11:04:07] <vagelis> The field MyArray is an array, should i have INSIDE MyArray an array? :S
[11:05:00] <mitereiter> does the query use the wanted index?
[11:23:40] <vagelis> sry i cant :| but thanks for ur help
[11:23:51] <vagelis> ill dig more because its kinda strange
[12:00:42] <ronr> hi, I'm trying to setup a mongo shard cluster (mongo 3) and everything went well until I tried starting mongos for the first time. It keeps failing on getting a distributed lock for upgrading the database: 2015-09-17T13:49:03.042+0200 D SHARDING [mongosMain] trying to acquire new distributed lock for configUpgrade on XXXX:27019,XXXX:27019,XXXX:27019 ( lock timeout : 900000, ping interval : 30000, process : XXXX:27017:1442490538:180428
[12:01:03] <ronr> I don't find any errors in the logs of the config servers, any ideas where to look?
[12:03:08] <ronr> so mongos does run, but I can't connect to it
[12:03:29] <ronr> I do see messages that LockPinger succeeds
[12:03:49] <ronr> but also these (without -v) waited 33s for distributed lock configUpgrade for upgrading config database to new format v6: LockBusy Lock for upgrading config database to new format v6 is taken
[12:11:36] <ronr> I just noticed all config servers claim they're busy upgrading, however they've be doing so for nearly three hours now, on a new empty installation so that can't be right
[12:15:39] <ronr> removing all the data dirs of the config servers and letting them rebuild themselves seemed to do the trick
[12:30:04] <ronr> next issue: if I try to add a replica set as a shard (sh.addShard("rs1/<host>:27017")), it says my host does not belong to replica set rs1, but if I add the host (sh.addShard("<host>:27017")) it says host is part of set rs1, use replica set url format???
[12:36:12] <vagelis> mitereiter: i think i found why its not a multikey. I think that in entire collection has one element in the array. I just inserted one document and put 2 elements in this array made a find and showed finnaly isMultikey:true.
[12:36:32] <vagelis> If this is right then multikey becomes when len/length > 1, correct?
[12:49:18] <deathanchor> ronr: did you add the whole set?
[12:50:12] <vagelis> metereiter actually no, If i search an array that has max 1 element and i use $eq it doesnt work but if i search with $in operator then is a multikey
[12:52:13] <ronr> and just jumping from issue to issue here (is that tutorial really complete?), I managed to get to the next step of my addShard command. But my shard obviously has authentication enabled and therefor mongos can't add it and the addShard function has no means of passing in a username and password? How do I do this?
[12:52:17] <vagelis> Jesus now worked with MyArray: 123 i dont understand whats going on
[13:33:07] <nikitosiusis> I'm trying to import my mongodb bson dump to mongo 3.0.6 via mongos. I set up 256M chunksize, but seems this setting doesn't work for me - chunks don't grow above 64M and new chunks are being created
[14:24:31] <StephenLynx> then no, I don't think so
[14:24:45] <StephenLynx> db.mine.aggregate(...) would work though
[14:28:23] <bdbaddog> StephenLynx: How do I store the results to use in a find statemnet?
[14:28:37] <StephenLynx> in the terminal client? I don't know.
[14:28:57] <bdbaddog> so probly a python (or other) script is the way to go.
[14:29:09] <StephenLynx> depends on what you want to do.
[14:29:46] <bdbaddog> I'm trying to prune some leaf nodes (effectively)
[14:30:17] <deathanchor> bdbaddog: yes you can do var result = db.mine.aggregate(..).result to store the result array
[14:30:28] <bdbaddog> So I create a set of all referenced _id's between one collection and another, and then want to delete all documents in a second collection which aren't referred to.
[14:31:13] <bdbaddog> deathanchor: can I print out the contents of the stored result in the shell?
[14:31:31] <deathanchor> yes just by typing out the variable name
[15:22:25] <elux> id rather not write one by hand from the docs .. id like to just tweak one
[15:24:59] <kaseano> Hi, I need to use the id of a doc as a FK. I know every doc has _id, using that is a little inconvenient sometimes though, ex I have to convert the string to an "ObjectID" from node, plus passing a small int to the app would have a smaller overhead, vs the long _id string.
[15:25:40] <kaseano> but if I created another ID on top of it, suddenly the BSON would be bigger, plus I'd have to index that new property too
[20:13:28] <StephenLynx> I dunno, schemas never did anything I couldn't do myself already. I don't hold any love for them. its just one more thing to adjust when I change the model.
[20:14:08] <BadApe> ok teach me something i just did if (document.containsKey("name") && document.containsKey("MaxCharacters")) {
[20:14:59] <StephenLynx> I thing cheeser is the java driver developer
[20:15:16] <BadApe> i am just see what the graph says about the driver
[20:15:35] <BadApe> oh they made their own it seems
[20:16:09] <moqca> So I'm just discovering MongoDB and I'm trying to port a scheduling sql db I have, that has an employee Table (employee info), dates table (dates prepopulated from now to 10 years, identifying weekdays and weeknums), and scheduleDate table, which takes from employees and dates when an employee is scheduled. Trying to wrap my head around mongodb, how can I do this here?
[20:23:13] <moqca> What I'm trying to understand is, how would I do the design in mongo, would the schedule someone is working for this week be an embeddedDocument?
[20:23:35] <moqca> And then people work with team leads that work with supervisors
[20:24:17] <moqca> If I wanted to take all leads and workers that belong to X supervisor, how would that be done in a document?
[20:24:26] <BadApe> moqca, very specific question :)
[20:26:15] <moqca> Yeah, I dont get it. I feel so dumb, haha
[20:33:50] <cheeser> depends on the query needs, really. it'd be simple enough to query the "worked" collection with the user id.
[20:34:03] <cheeser> presumably you'd already have that in hand anyway.
[21:48:05] <BadApe> i have a number of document that have a configuration type, i would like to reference another document
[21:48:40] <BadApe> yes i know it is a relationship, but i think i need a little bit of structure between documents
[22:07:27] <Fetch> I have a...mongodb dba...who designed an architecture for an app using 3 config instances cohosted with 3 mongos instances (3 datanode mongod replicaset is on a separate set of instances)
[22:07:47] <Fetch> Is that pretty typical with Ops Manager? It doesn't seem to do that configuration for a cluster by default
[22:08:31] <joannac> Fetch: are you testing Ops Manager?
[22:08:43] <joannac> or do you mean Cloud Manager?