PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 1st of February, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:12:18] <dddh> forgot how to split array ;(
[05:13:12] <dddh> for example I have "user: 1, departments: {1, 2}" and "user: 2, departments: {2, 3}"
[05:13:56] <dddh> how to make them "user: 1, departments: 1", "user: 1, departments: 2", "user:2, departments: 2" and "user: 2, departments: 3"
[05:13:59] <dddh> ?
[05:53:41] <dddh> hm, I wish I could unnest them ;(
[07:17:49] <Freman> sao... 2 node mongos setup... I think we need to disable rebalancer/migration
[10:02:35] <fish_> re
[10:02:46] <fish_> should the localhost exception already get disable after I create a shard local user?
[10:05:00] <fish_> because I created a cluster via some scripts and before adding the first user worked just fine but now I get 'not authorized'... and IIRC the only thing I changed was adding creation of the shard local user to the scripts, so that happened before I attempted to add the cluster wide user
[10:22:12] <Lope> I really miss the writeresult messages that I get from the 3.2 mongo when using the 3.0 mongo. Debian Jesse only supports mongo 3.0 while Ubuntu supports 3.2.
[10:23:24] <Lope> As a fascinating turn of events, I was intending to set up an ubuntu VM, install mongo 3.2 on it and transfer the DB's across. But I accidentally added the ubuntu 3.2 to my debian jesse machine and then "installed" it. The amazing thing is it seems to work perfectly.
[10:41:05] <Lope> hmm it seems a bit f'd up. I better follow through properly.
[11:03:16] <m3t4lukas> Lope: why do you use Debian if you want to go bleeding edge?
[11:08:39] <fish_> again reproduce the issue.. ater connecting to each of my shards + config server and creating a shard local user in the admin db with 'role': "root", I can't create a cluster wide user anymore..
[11:10:29] <fish_> is this expected? the documentation is a bit unclear on that. it says that 'The localhost exception allows you to enable access control and then create the first user in the system.' and 'To create users for a sharded cluster, connect to the mongos instance and add the users. Clients then authenticate these users through the mongos instances.'
[11:11:05] <fish_> and it says somewhere that adding a user disables the localhost exception
[11:11:33] <Lope> m3t4lukas: I don't want bleeding edge. I just want write results in the terminal so I can see if my command went into a black hole, made a galaxy explode, or did nothing.
[11:11:40] <fish_> but it doesn't say if adding a local / shard / mongod user disables localhost exception for the cluster-wide / mongos user
[11:12:37] <fish_> or wait, maybe users in the admin db on the config server RS == cluster wide users?
[11:13:34] <fish_> then everything would make sense :D
[11:58:47] <m3t4lukas> fish_: https://docs.mongodb.org/manual/core/security-users/#sharded-cluster-users
[12:00:03] <m3t4lukas> Lope: understandable. Maybe there was a setting added
[12:01:46] <fish_> m3t4lukas: that's what I just quoted
[12:02:21] <m3t4lukas> fish_: you didn't quote it, you asked for it :P
[12:02:32] <fish_> m3t4lukas: but yes, it seems like it's how I described it. it also says 'MongoDB stores these sharded cluster user data in the admin database of the config servers.' - but it wasn't immediately clear to me that local shard users in the admin db on the config servers ARE the cluster wide users
[12:03:08] <m3t4lukas> fish_: now you know for sure that they are :)
[12:03:21] <fish_> but now I need to fix my actual issue.. the user creation stuff was just 'surprising' and I thought it could have been related
[12:03:43] <fish_> https://jira.mongodb.org/browse/SERVER-22392 <- this one, right now trying if I can reproduce it with 3.2.0
[13:44:16] <Lope> okay it was just a configuration issue. So I've got ubuntu mongodb repo working on Debian 8 Jessie. Should I be worried about future stability and updates? Should I move over to ubuntu?
[13:45:12] <Lope> I suppose there might be a missing dependency etc.
[13:45:19] <Lope> Different repos and all.
[13:45:29] <Lope> (distro repos)
[14:04:46] <torak> Hello
[14:04:57] <torak> where can i find the jar file for android to connect my mongolab db?
[14:05:47] <fish_> can anyone tell me what exactly this error means? caught exception while doing balance: could not get updated shard list from config server due to ExceededTimeLimit Operation timed out
[14:17:30] <torak> where is the mongodb android binaries??
[14:18:19] <Zelest> android binaries? o_O
[14:29:04] <torak> Zelest: i am trying to use mongolab with my android app. Do i need a .jar file as lib?
[14:31:36] <StephenLynx> you don't do that.
[14:31:58] <StephenLynx> you don't connect a client directly with a database.
[14:32:12] <torak> StephenLynx: what should i do?
[14:32:35] <torak> StephenLynx: i was using parse. and its going down so i have to move mongodb or somewhere else
[14:32:46] <StephenLynx> write a server application and have the client connect to the server and then the server work with the database.
[14:33:21] <cheeser> that.
[14:33:45] <cheeser> you don't want database credentials on the client nor connections open to the world.
[14:34:18] <torak> StephenLynx: cheeser: so i use heroku?
[14:34:24] <StephenLynx> what is heroku?
[14:34:27] <torak> I think heroku exist for this
[14:34:34] <torak> it says its a pipeline
[14:34:37] <StephenLynx> what
[14:34:46] <torak> http://heroku.com/
[14:34:58] <StephenLynx> >cloud application patform
[14:35:01] <StephenLynx> garbage
[14:35:16] <StephenLynx> you want a server where you can use root
[14:35:29] <StephenLynx> if you can't do that, its useless.
[14:35:47] <StephenLynx> unless its free, in that case who cares
[14:35:50] <torak> StephenLynx: i am not that professional
[14:36:07] <torak> StephenLynx: i am still learning so something easy could help me
[14:36:14] <StephenLynx> then set a VM
[14:36:32] <StephenLynx> install centOS minimal on it
[14:36:37] <StephenLynx> and study using it.
[14:36:54] <StephenLynx> as if it were a remote server.
[14:38:16] <torak> StephenLynx: hmm i understand.
[14:38:39] <StephenLynx> any other linux distro would work, but centOS is aimed at being a good server distro and you will have minimal versions on real servers.
[14:38:46] <StephenLynx> so you might as well go for a similar setup
[14:39:21] <StephenLynx> when you know what you will need, rent a VPS or similar.
[14:39:44] <StephenLynx> you can get one with 512mb RAM on digital ocean, but they are kind of crap, because you don't get swap by default.
[14:40:02] <StephenLynx> I recommend linode, but their cheapest servers are 10 bux /mo with 1gb ram
[14:40:13] <StephenLynx> while the 512mb ones at digital ocean are 5 bux / mo
[14:41:00] <StephenLynx> digital ocean is also pissy with some stuff. I asked them to open port 25 for me and they asked for a shitload of personal info, so I just moved back to linode after that
[14:41:35] <StephenLynx> there is also this one that is really cheap, but its kind of crap too
[14:41:39] <StephenLynx> let me see if I can find it
[14:50:28] <torak> StephenLynx: so still don't understand what should i do... Where can i find a documentation about this
[14:50:38] <StephenLynx> about this what?
[14:51:16] <torak> StephenLynx: this android->client->server
[14:51:29] <StephenLynx> first
[14:51:37] <StephenLynx> you know how to write a web-back-end?
[14:51:44] <StephenLynx> node, PHP, ruby, go
[14:51:48] <StephenLynx> python
[14:52:05] <torak> StephenLynx: i know node.js
[14:52:07] <StephenLynx> these are the most common and accessible tools, maybe not go being as accessible
[14:52:07] <StephenLynx> ok
[14:52:12] <StephenLynx> then you can roll with that
[14:52:21] <StephenLynx> you know how to set a node server listening to http?
[14:52:54] <torak> StephenLynx: yes. ı was set up an apache server. in settings you can select the port to listen
[14:53:01] <StephenLynx> you dont need apache.
[14:53:15] <StephenLynx> don't use webservers unless you know why you need them.
[14:53:35] <StephenLynx> after you set your http server with node
[14:53:43] <StephenLynx> you write a client that makes http requests
[14:54:01] <StephenLynx> on your server you handle these requests and work with the database based on what information you get from the request
[14:54:11] <StephenLynx> you know the mongo driver for node?
[14:54:30] <StephenLynx> https://docs.mongodb.org/ecosystem/drivers/node-js/
[14:54:35] <StephenLynx> this is what you want to use.
[14:55:01] <StephenLynx> http://mongodb.github.io/node-mongodb-native/2.0/api/
[14:55:17] <StephenLynx> https://www.npmjs.com/package/mongodb
[14:55:39] <torak> StephenLynx: i am a cs student and all the lab lessons we directly connect the project to the server with server id and pwd. But you say, in realworld its too nonsense. You need a 3. computer to handle this connections and it will be the only computer to connect the server. The other connect to this. For example everycodes work on the cloud and users app doesnt have any info about the codes work at server.
[14:56:06] <StephenLynx> you can have the db in the same server as the back-end
[14:56:16] <StephenLynx> if your server has enough resources.
[14:56:30] <StephenLynx> I run lynxhub.com like this.
[14:56:43] <torak> StephenLynx: hmm. i see. What a crappy shool i got.
[14:56:45] <StephenLynx> I got mongo installed taking only local connections but without authentication
[14:56:59] <StephenLynx> any college is shit for learning real software development.
[14:57:15] <StephenLynx> people that are good in this area never lecture.
[14:57:16] <StephenLynx> NEVER
[14:57:42] <StephenLynx> but this single-server setup is only good for smaller projects.
[14:57:52] <StephenLynx> but you can roll with this until you get limited by it.
[14:58:06] <torak> StephenLynx: you are right. I will read those documents. thank you very much!
[14:58:09] <StephenLynx> np
[14:58:21] <StephenLynx> if you want, you can read my source code too
[14:58:28] <StephenLynx> githud.io/LynxChan/LynxChan
[14:58:42] <StephenLynx> its just node taking http requests and working with mongo.
[14:58:49] <StephenLynx> no webservers, no frameworks, no ODM
[14:58:52] <StephenLynx> just node and the driver.
[14:58:57] <StephenLynx> KIS
[14:59:19] <StephenLynx> gitgud.io/LynxChan/LynxChan
[14:59:20] <StephenLynx> fixed
[15:00:37] <torak> StephenLynx: i will check
[15:12:45] <IanWizard> Is there a way to restore a all the documents in a collection (or one by one) to their previous revision? I may have just severely screwed up a collection and if I can have a script roll them all back, that would be much easier than restoring from a backup. All of the documents are still there, they've just had some junk values added to a few fields.
[15:13:27] <IanWizard> Everything I'm finding on google is for mongorestore, which seems to be for an actual resore rather than reverting a document.
[15:19:40] <StephenLynx> i dont think mongo keeps multiple versions of data
[15:19:52] <StephenLynx> mongo restore is just to write into the db the content of a mongo dump
[16:01:15] <XPMUser> hello
[16:02:08] <XPMUser> can someone please help me with the c# driver 2.2?
[16:20:57] <chasepeeler> I'm having issues whenever one of my mongo nodes doesn't shutdown cleanly (which happened to all three nodes last week due to an issues with our VM hosts). When the server comes back up, mongod won't start. I've found the only way to get it to start is rm -rf /var/lib/mongodb/*, then start the services. At that point, I have to do rs.initialize() on the
[16:20:58] <chasepeeler> first node, and then do the same thing on the other nodes, returning to the first node and running rs.add() for each of them.
[16:22:45] <chasepeeler> is there any way to ensure that mongodb can start back up, even after an unclean shutdown, or, at least not have to go through the initialize/add steps every time it doesn't? We use mongodb to store session data for our application, so if its not working, neither is the application
[16:52:13] <torak> what is the best ui tool for mongo?
[16:52:18] <torak> (free)
[16:53:12] <torak> something like phpmyadmin
[16:55:41] <StephenLynx> none
[16:55:50] <StephenLynx> I never seen one that was worth crap
[16:56:28] <torak> StephenLynx: so i have to create update drop all the tables with running queries??
[16:56:46] <StephenLynx> wot
[16:56:58] <torak> https://www.mongodb.com/cloud
[16:57:09] <torak> this thing looks good but its just free for 30 days
[16:57:19] <StephenLynx> you are still learning.
[16:57:28] <StephenLynx> that is a service for people with business and stuff.
[16:57:49] <StephenLynx> not for students.
[16:58:31] <torak> so how can i edit my tables?
[16:58:35] <torak> i need a gui
[16:58:43] <StephenLynx> you don't need a GUI
[16:58:53] <StephenLynx> and you don't have tables, but collections.
[16:59:08] <StephenLynx> and you only edit small details like indexes
[16:59:19] <StephenLynx> there isn't a schema that needs to be updated or anything
[16:59:51] <StephenLynx> I know writing commands to handle with SQL dbs is laborious to say the least and trust me, there isn't that issue with mongo.
[17:00:05] <torak> but i need it while developing the app. So i can check if the object created deleted or etc. for trying things
[17:00:10] <StephenLynx> you
[17:00:11] <StephenLynx> don't
[17:00:12] <StephenLynx> need
[17:00:12] <StephenLynx> it
[17:00:23] <StephenLynx> use the terminal client
[17:00:49] <StephenLynx> there is a pretty() function that you put after most commands that return data
[17:01:01] <StephenLynx> like db.mystuff.find().pretty()
[17:01:18] <torak> hmm
[17:01:49] <StephenLynx> that has the same effect as JSON.stringify(object,null,2) instead of just running plain stringify
[17:03:43] <torak> StephenLynx: so. about the connection. i will connect to the server via the public ip in the app. So in the ubuntu i run some node.js code for doing do jobs and saving the data to server. Right?
[17:03:57] <StephenLynx> yes.
[17:04:13] <StephenLynx> the client-server work is just standard http
[17:04:28] <StephenLynx> server-db is done using the driver.
[17:05:07] <torak> StephenLynx: so i should listen ports and get the query
[17:05:15] <StephenLynx> yes.
[17:05:32] <StephenLynx> not just the query but the whole request data.
[17:05:33] <torak> StephenLynx: i can even create my own query lang. :D
[17:05:36] <StephenLynx> don't.
[17:05:51] <StephenLynx> if you are using get, just use standard ?param=value&param2=value2
[17:06:09] <StephenLynx> if you do that, you won't be able to use standard HTML forms with your back-end.
[17:06:15] <StephenLynx> if you create your own query language.
[17:06:28] <StephenLynx> if you are using the request body you can go nuts, though.
[17:06:30] <torak> StephenLynx: hmm. i understand
[17:06:42] <StephenLynx> I use JSON for that.
[17:06:58] <StephenLynx> wait, actually
[17:07:00] <StephenLynx> nevermind about that.
[17:07:11] <torak> StephenLynx: i probably go with the post
[17:07:12] <StephenLynx> you still want to have at least one api that uses standard POST
[17:07:25] <StephenLynx> so you can have a HTML form interacting with it.
[17:07:43] <StephenLynx> if you don't care about HTML front-ends you can just have a JSON based API
[17:07:53] <StephenLynx> that parses the request body as JSON
[17:08:07] <StephenLynx> that allows you for more flexibility and features.
[17:08:33] <torak> StephenLynx: That thing is going bigger and bigger... :/
[17:08:41] <StephenLynx> because you can interpret the request as a single json object and then have sub-fields for stuff like authentication that is unnafected by parameters, because it is on a different base field
[17:08:59] <StephenLynx> yeah, making good back-ends takes time and effort.
[17:09:04] <StephenLynx> this is why most back-ends are crap.
[17:09:15] <StephenLynx> people just roll with some flavor of the week framework
[17:09:25] <StephenLynx> and shit out a system they don't even comprehend
[17:11:34] <StephenLynx> not to mention when they start coupling stuff they shouldn't, like front-end and database.
[17:11:36] <torak> StephenLynx: so this is my graduation project. I have done good so far with parse.com, i still have time to finish it with parse because its going down at 2017. I can develop the parse version and graduate with it. But I dont want to create a crappy product for just graduating. But i am not sure if i go deeper and deeper. Or just use the firebase(something similar to parse)
[17:11:37] <StephenLynx> hence MEAN stack.
[17:11:44] <StephenLynx> what is parse.com?
[17:12:00] <torak> StephenLynx: a backend service for mobile. by facebook.
[17:12:07] <StephenLynx> kek
[17:12:12] <StephenLynx> good riddance
[17:12:15] <torak> StephenLynx: but they are closing it down
[17:12:22] <StephenLynx> how do you make a back-end service for mobile in the first place?
[17:12:27] <StephenLynx> that makes absolutely no sense.
[17:12:45] <StephenLynx> mobile apps just use standard web protocols like http and web sockets
[17:13:12] <StephenLynx> m8
[17:13:15] <StephenLynx> college is pointless.
[17:13:24] <torak> StephenLynx: yea but it has its own .jar lib for android and you can just use singinInbackground(username,pass) etc.
[17:13:26] <StephenLynx> just shit out anything that get your diploma
[17:14:16] <StephenLynx> so you can coup some benefit, since you are already too deep in debt to be worth quitting
[17:15:37] <StephenLynx> that sounds just like some crappy sandbox with extremely rigid framework stuff.
[17:15:50] <StephenLynx> if they have a FE lib for login, you are limited to what you have on the BE.
[17:16:04] <torak> StephenLynx: since i am not the expert on android-nodejs or mongo it will take too much time to finish it if i go with the mongo. I can finish it with parse but it will stop working in 1 year. so that makes me feel like i worked for nothing
[17:16:19] <StephenLynx> well, you went to college.
[17:16:28] <torak> StephenLynx: :D
[17:16:47] <StephenLynx> this project dying because of this thing shutting down
[17:16:54] <StephenLynx> is the least amount of time you will have wasted.
[17:17:33] <StephenLynx> and in the end you are still worth less than your average indian.
[17:17:37] <torak> StephenLynx: thats why i need to move to somewhere else but i cant find a safe place
[17:17:46] <StephenLynx> where you at?
[17:17:57] <torak> StephenLynx: :D turkey :(
[17:17:59] <StephenLynx> welp
[17:18:03] <StephenLynx> thats better.
[17:18:16] <StephenLynx> I thought you were in the US
[17:18:28] <torak> StephenLynx: weren't the us better?
[17:18:32] <StephenLynx> lol no
[17:18:42] <StephenLynx> you can't graduate without a 6 figure debt there
[17:18:44] <StephenLynx> and thats in dollars.
[17:18:57] <torak> StephenLynx: oh yes i heard about that.
[17:19:07] <StephenLynx> imagine having to get around 20-30k dollars in debt.
[17:19:12] <torak> StephenLynx: the books etc are too expensive
[17:19:16] <chasepeeler> none of that is true
[17:19:19] <StephenLynx> books are rubbish.
[17:19:27] <StephenLynx> specially for new tech and high level tech.
[17:19:38] <StephenLynx> you want documentation and source code to learn from.
[17:20:07] <chasepeeler> whether college is necessary or not is one thing... but you can get a degree without being crushed with debt
[17:20:15] <torak> StephenLynx: i probably will have 10k dollar debt for me and my girlfriend combined
[17:20:20] <StephenLynx> you can, but thats not the usual route.
[17:20:25] <StephenLynx> daium
[17:20:32] <StephenLynx> why?
[17:21:14] <torak> StephenLynx: Goverment gives you credit for living etc while youre a collage studen (if you want) and you pay back when you find a job
[17:21:21] <StephenLynx> welp
[17:21:53] <StephenLynx> here in br you can get a funding for your college on private institutions, but its actually free.
[17:22:05] <StephenLynx> you don't have to pay back, you just might lose it if your grades are crap
[17:22:41] <StephenLynx> and even then, tuition is not too expensive here.
[17:22:49] <StephenLynx> I think my whole college cost about 5k
[17:23:02] <StephenLynx> with the dollar costing about 2x my local currency
[17:23:05] <torak> StephenLynx: yeah we have that here too but there is not too much people to support students. they generally prefer drinking more coffe and eating more food than sharing
[17:23:08] <StephenLynx> but that was 10 years ago
[17:24:21] <StephenLynx> meh, college is crap most of the time anyway.
[17:25:48] <torak> StephenLynx: its fun. but not educational
[17:27:12] <StephenLynx> I found college a pain in the ass
[17:27:23] <StephenLynx> just a bunch of arbitrary shit way too much time-consuming
[17:44:24] <deathanchor> working in college helped me prep for working in the real world. which turns out that 90% of time everything is broken :)
[17:45:27] <StephenLynx> work is work.
[17:45:31] <StephenLynx> the problem is classes.
[17:56:32] <torak> StephenLynx: classes?
[17:56:42] <deathanchor> You mean the place I sleep?
[17:56:46] <StephenLynx> no
[17:56:50] <StephenLynx> sitting in a class
[17:57:49] <torak> :D
[17:59:04] <StephenLynx> oh
[17:59:08] <StephenLynx> I get
[17:59:14] <StephenLynx> yeah, I slept most of the time too
[18:16:15] <magicantler> is find + save slower than just using update?
[18:16:58] <cheeser> probably since it involves a round trip in/out of the database
[18:51:44] <supersym> anyone here with sufficient knowledge of the (node/js) driver to answer the question why/what the reason for ObjectID and ObjectId is...
[18:52:20] <supersym> these things are notoriously hard to google =/
[18:52:41] <cheeser> asking our node guys...
[18:53:06] <nikitosiusis> how can I find out that my mongodb stopped fitting into memory and started doing some reads from disk? is there some metric in mongo statistics for this?
[18:53:26] <supersym> is cheeser a bot or what? always helpful answers here... seems to me, this might be the first logical place really, and not so much node
[18:53:51] <supersym> somehow I get the impression the first answer always is "ask someone else" .. no disrespect
[18:53:54] <cheeser> not a bot. :)
[18:54:16] <supersym> aight... I knew a Cheese once... ever played Utopia by any chance? :P
[18:54:24] <cheeser> nope
[18:54:39] <supersym> big concho he was anyway... quite the famous character
[18:54:48] <StephenLynx> supersym what about ObjectId?
[18:55:27] <supersym> well there is a ObjectID and ObjectId currently in the driver, I've always assumed that the former was a fek-up by some sleepy head, and left in for backwards compatible reasons
[18:57:11] <supersym> but now I'm not so sure anymore
[18:57:27] <StephenLynx> lel
[18:57:35] <StephenLynx> I never noticed there was two types.
[19:01:19] <supersym> hmmm... ok it seems recent version, only has ObjectID left... ugh. Now I'm really confused to see who's bringing in the ObjectId.. but I guess it answers which one is the 'right' one
[19:01:38] <supersym> thanks for the time!
[19:58:13] <zylo4747> hello
[19:58:27] <zylo4747> I was wondering if someone could help me with a Cloud Manager deployment
[20:06:25] <zylo4747> i'm trying to install a new 3 node replica set on linux and it's just hung and the error logs are filled with "not authorized" message. can someone help?
[20:06:33] <zylo4747> i'm using cloud manager
[20:27:21] <m3t4lukas_> zylo4747: "not authorized" can have many meanings and without any logs one can only guess. My guess is you are having security enabled but you did not provide any keyfiles. https://docs.mongodb.org/manual/core/security-internal-authentication/#inter-process-auth
[20:27:33] <m3t4lukas_> zylo4747: as I said it's just a guess
[20:57:26] <chasepeeler> given: mongodb://mongo1:27017,mongo2:27017,mongo3:27017/?replicaSet=espsession&journal=false&w=0 for connecting to mongodb, via PHP, what happens if, after a crash, the three servers come up with the replicaset not initialized? will it still connect to the first one listed and read/write to it without issue? Or do I need to connect to a single server without
[20:57:27] <chasepeeler> specifying teh replicaSet parameter?
[21:12:48] <gruntruk> hi, i was wondering if someone could help shed some light on understanding `.explain()` and indexes… am helping out do some performance debugging on a legacy app, it has a pretty large collection with a few queries that are performing rather atrociously. after adding an index to match query pattern (filtering on three+ fields), i still only see it hitting the index for a single field. any pointers? this query in particular is quite slug
[21:14:11] <gruntruk> so, given i’m querying on fields: “company”, “user_id”, and “status_code” - even after adding an index for company, user_id, status_code, the explain only shows it using “BtreeCursor user_id_1”
[21:14:48] <gruntruk> and ends up with a lot of scans (@ 16K)
[21:32:51] <StephenLynx> so
[21:32:57] <StephenLynx> its a back-end?
[21:33:21] <cheeser> it's a middle-end sounds like :)
[21:33:43] <Freman> more of a middle end - we have a web ui that people can query but they keep bypassing it and connecting directly - and if we just close the port then someone will cry to management and management will get crabby to us
[21:34:08] <StephenLynx> that seems pointless.
[21:34:21] <StephenLynx> why would you have a web ui that makes direct queries?
[21:34:27] <cheeser> restricted access is not a bad thing
[21:34:31] <StephenLynx> ok
[21:34:36] <StephenLynx> the point is
[21:34:47] <StephenLynx> why not having an actual application with specific features?
[21:34:58] <StephenLynx> instead of shit database wraper?
[21:35:01] <Freman> it makes direct queries that support indexes, but people connect directly and robo mongo is constantly leaving their dumb queries running when they quit
[21:35:26] <Freman> but writing something that takes the given query, checks to see if it uses any indexs before permitting it to run. much sexy
[21:35:38] <StephenLynx> that is pointless, IMO.
[21:35:51] <Freman> StephenLynx: we do have an actual application with specific features
[21:36:02] <cheeser> there's a difference between pointless and "not how i'd do it"
[21:36:08] <cheeser> clearly it's not pointless to Freman
[21:36:18] <StephenLynx> ok, then explain me the use case.
[21:36:37] <StephenLynx> why do you need a db wrapper?
[21:36:45] <Freman> Personally, I'd delete over half the data, drop a firewall over the lot of it and tell them to use the application or bugger off
[21:36:56] <StephenLynx> that.
[21:37:08] <StephenLynx> why people can query the db in a more direct manner in the first place?
[21:37:12] <StephenLynx> management dumbassery?
[21:37:19] <Freman> but I don't get to make that decision, I just have to deal with the consequences of people running dumb things.
[21:37:31] <StephenLynx> so, management dumbassery.
[21:37:52] <StephenLynx> still pointless, its just not your fault.
[21:37:56] <Freman> "why is our logging router backlogged by 1000000 entries?" cos some fool ran an unindexed query on storageSize" : 232634284448 - log_data
[21:38:29] <Freman> I'll write the middle-end, it'll let them run their queries only after they include indexes in them
[21:39:39] <Freman> why we keep all this crap... or log it in the first place "remote api spat out a 500 error so instead of logging the error message and the key components that let us replicate the request, we're going to log the 8k of data that makes up the entire request and response"
[21:39:56] <StephenLynx> kek
[21:40:44] <Freman> so while I might sound frustrated with mongo, it's only with mongos/balancer. it wouldn't even be a problem if we weren't being dumb in the first place
[21:41:20] <Freman> is 07:30 too early to be into the scotch?
[21:41:36] <StephenLynx> blame the dev that didn't just said "that is a greaaaat idea, but sorry, nope, that is literally impossible to be done."
[21:41:39] <cheeser> it's 5:30 somewhere
[21:41:53] <StephenLynx> and instead actually listened to the retarded manager that asked for that.
[21:42:10] <Freman> any time there's a backlog on the logger I just log in and kill any queries that have been running for more than 10s
[21:43:25] <Freman> actually the middle-end is my secret project
[21:43:27] <Freman> bypass the manager
[21:44:20] <Freman> iptables -I INPUT -p tcp --dport 27017 ! -s 10.10.10.10. -j REDIRECT --to $middleend
[21:44:21] <Freman> mwahaha
[22:15:17] <gruntruk> Freman: wish the developers had “Query Guard” prior… this is the first project i’ve used mongo on… it’s quickly becoming apparent that the resident “experts” have little clue as to how they have been using it all this time.
[22:30:33] <Freman> heh, I don't even pretend to be an expert on mongo :D
[22:30:59] <Freman> but I have a hammer and I'll be damned if this issue doesn't look like a nail
[22:48:50] <StephenLynx> actually
[22:48:55] <StephenLynx> you have a club and sack of poop
[23:04:52] <uuanton> does anyone know how to connect replica set without resync data. Two instances made of same data snapshot but somehow drop everything when sync
[23:14:02] <uuanton> oh well
[23:14:36] <uuanton> dead ?