PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 1st of February, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:25:54] <Secretmapper> guys how would you go about designing a badge system?
[03:26:13] <Secretmapper> I'm thinking the classic Badges_User - Badges - User Tables
[03:26:21] <Secretmapper> Which seems kinda relational
[03:41:44] <Secretmapper> guys how would you go about designing a badge system?
[08:20:25] <codefreeze-lap> Anyone awake? I've gone thru this twice now, still no go.
[08:21:43] <codefreeze-lap> I'm trying to get a mongo replicationSet going. Simple stuff. 3 machines. Follow the instructions, and I end up with the master knowing about the other two machines, but the other two machines don't know about the master. All 3 are primary.
[08:23:08] <codefreeze-lap> I don't copy the db to the other two machines.... hoping they'll sync and grab the db's from the first machine... but they don't, of course. They are all masters of the universe, and it just so happens that two of them have nothing beside "admin" and "local".
[08:23:42] <codefreeze-lap> The logs show no errors.
[08:24:14] <codefreeze-lap> And the other two machines logs show the connections from the first (the intended primary).
[08:28:45] <codefreeze-lap> The intended primary compains about "replSet info two primaries (transiently)... but it just keeps going on and on for hours
[08:29:45] <codefreeze-lap> That somehow doesn't come across as "transiently".... am I impatient? Maybe they'll communicate and do the voting thing sometime tomorrow?
[08:30:02] <codefreeze-lap> :P
[08:31:44] <codefreeze-lap> If I try to force the other two to consider the intended primary (or each other), I get complaints that the config version of the intended primary is greater than the local one, so forget that.
[08:32:39] <codefreeze-lap> (uh, I try an rs.add("sys") , I should have said)
[08:33:19] <codefreeze-lap> The rs.conf() on the intended primary shows the 3 systems as members.
[08:33:44] <codefreeze-lap> The rs.conf() on the other two systems just show themselves as the single member in the set.
[08:34:06] <codefreeze-lap> Very frustrating. Tried all sorts of stuff.
[08:34:21] <codefreeze-lap> Anyone have any words of Wisdom?
[08:35:49] <codefreeze-lap> Oh, all 3 systems share the same keyFile, but auth=false. (The result is I need to use the db.auth() func to authenticate.)
[08:37:54] <codefreeze-lap> Sorry, I'm just exhausted. I'll brb... short nap...
[10:14:31] <kali> codefreeze-lap: by any chance, are you sure you've run rs.initiate on only one of the three instances ?
[10:35:59] <mark__> in moongoose buffer means:
[10:36:00] <mark__> ?
[10:37:08] <Nodex> Google is a search engine
[10:37:09] <Nodex> http://mongoosejs.com/docs/api.html#types-buffer-js
[10:39:07] <mark__> i mean what is it
[10:39:28] <mark__> buffer means to store something binary data kind
[11:05:39] <_nmz_> hello
[12:35:52] <infrared> hi. are questions related to node.js & mongo allowed?
[12:36:29] <ppetermann> why wouldn't they be? you might just not get an answer
[12:36:37] <ppetermann> depending on if someone knows or not
[12:38:52] <infrared> ok. i'll pastie what i have and hopefully someone can help :) thanks
[12:49:30] <infrared> i am trying an update, with $push. i appologize in advance if my issue has nothing to do with mongo. here's the paste: http://pastie.org/8688544
[12:52:52] <squeakytoy> I have a question about id. Is it wise to use a document's _id as the public id on a site? for example a user's id?
[12:57:35] <squeakytoy> just found the answer on stack overflow, thanks
[12:57:57] <infrared> link? i'm curious too
[12:58:27] <squeakytoy> http://stackoverflow.com/questions/4587523/mongodb-is-it-safe-to-use-documents-id-in-public
[12:58:30] <infrared> thanks
[15:49:56] <codefreeze-lap> kali-- yes, I most certainly ran rs.initiate() on all 3 machines. (Otherwise, I wouldn't have gotten as far as I did).
[15:50:35] <kali> codefreeze-lap: initiate() shouls only be run on one :P
[15:50:51] <kali> codefreeze-lap: that's your problem
[15:51:10] <codefreeze-lap> Oh, really!!!!!
[15:52:51] <codefreeze-lap> It seems I had problems if I didn't run it.... eh, it all gets mixed together in the late night fog. I'll give it a spin without the initiate() call on the intended secondaries.
[15:53:21] <kali> codefreeze-lap: you should connect to only the "originating" member (the one you want to keep the data), and run initiate(), then add() twice on it
[15:53:36] <kali> codefreeze-lap: you should not have to connect to the added nodes
[15:54:51] <codefreeze-lap> So, it *shouts*, eh? :) lol, I'm deaf as a fence post.
[16:20:43] <_hrz> hey guys, need some pymongo assistance
[16:21:55] <_hrz> is there a way to find out if a pymongo cursor contains an exception? without iterating and unpacking the results?
[16:22:13] <_hrz> i am writing a wrapper and need to know beforehand to handle the exception
[16:32:55] <TAG_109> Hey, the projection operators on arrays return only the first matching array. What if you want only and all the matched elements? If without a projection then it returns all the array elements
[16:54:07] <TAG_109> Hey, the projection operators on arrays return only the first matching array. What if you want only and all the matched elements? If without a projection then it returns all the array elements
[19:13:01] <amit_usual> hey guys i just took a mongodump of a mongo db
[19:14:21] <amit_usual> while i did show db on the client it showed that the database size was 5gb
[19:14:32] <amit_usual> but the dump size is 1.5 gb
[19:14:37] <amit_usual> how is that the case ???
[20:30:28] <kali> amit_usual: http://docs.mongodb.org/manual/faq/storage/
[20:46:42] <TAG_109> Hey, the projection operators on arrays return only the first matching array. What if you want only and all the matched elements? If without a projection then it returns all the array elements
[20:51:20] <Mmike> If I want to have my secondary to re-sync from primary, I can just delete the datadir, right? Primary knows which nodes participate in replset and it will tell secondary to get the data
[20:51:22] <Mmike> right?
[20:58:10] <TAG_109> Mmike: This is no longer useful,. sigh
[20:59:31] <Mmike> no longer...
[20:59:35] <Mmike> what? :)
[21:07:56] <tyoc213> Hi there, if I want to store my own format of a number and make it searchable and that it can be ordered, how I can do it from java?
[21:11:03] <Logicgate> Hey guys, so I need to aggregate some data. Not sure how to go about this one
[21:11:22] <Logicgate> The data looks like this: {type: 'event1', userID: 1}
[21:11:27] <kubber> hi guys. I'm using mongo 2.0.4 on ubuntu 12.04 and i see very high cpu load .. so first question .. does mongo 2.0.4 has anything like mongotop ?
[21:11:39] <Logicgate> {type: 'event2', userID: 1},{type: 'event3', userID: 1},etc
[21:11:56] <Logicgate> I want to aggregate the sum of each event type, grouped by type
[21:11:59] <kubber> heh too many questions :) too few answers :)
[21:12:13] <Logicgate> event1: 10, event2: 20, event3: 14
[21:14:46] <Logicgate> grouped by userID and event type
[21:19:01] <sviterok> Logicgate:
[21:19:01] <sviterok> db.test.aggregate(
[21:19:01] <sviterok> { $group: {
[21:19:01] <sviterok> _id: { type: "$type", userID: "$userID" },
[21:19:02] <sviterok> 'sum': { $sum: 1 }
[21:19:02] <sviterok> }}
[21:19:03] <sviterok> )
[21:19:25] <Logicgate> sviterok, I want it to be aggregated in one object per video ID though
[21:19:28] <Logicgate> I already did that.
[21:20:09] <Logicgate> So the output will be {videoID: 1, event1: 1, event2: 1, event3: 3},{videoID: 2, event1: 1, event2: 1, event3: 3}, etc...
[21:20:37] <Logicgate> will I need to mapreduce?
[21:22:38] <BigOrangeSU> Hi, on map reduce can I emit a key as an array?
[21:29:28] <kubber> hey guys can i somehow monitor mongodb queries in realtime ?
[21:29:31] <kubber> like redis monitor ?
[21:32:32] <BigOrangeSU> @kubber: http://docs.mongodb.org/manual/administration/monitoring/
[21:36:26] <kubber> BIGORANGE : i forgot to tell you i'm using 2.0.4 on ubuntu 12.04 so i don't have montotop ..
[21:36:55] <kubber> is there a dramatic difference between 2.0.4 and current version in terms of performance ?
[21:37:41] <BigOrangeSU> in features, yes, probably in performance depending on the type of queries
[23:03:34] <swak> anyone here use express?
[23:04:04] <swak> So I'm using express with mongodb. I found some example code and I'm trying to figure out how it does it's loading from the db. Here's the code I'm working with: http://pastebin.com/u9aYtEsV and a function used: http://pastebin.com/4YNbpvfx
[23:04:04] <swak> How does it choose which collection to search?
[23:12:15] <hipsterslapfight> Article is required at the top of the file i imagine
[23:13:06] <hipsterslapfight> var mongoose = require('mongoose'), Article = mongoose.model('Article') // assuming we're talking mongoose
[23:14:09] <swak> hipsterslapfight yes, mongoose. the collection is 'articles' btw
[23:14:23] <hipsterslapfight> well there you go
[23:15:58] <swak> thanks, I'll play around with it.