[06:31:19] <bambanx> guys how i can keep running mongodb, i am using webfaction is shared hosting, i used fork method but am not sure if i am doing well
[06:33:08] <bambanx> that looks like this /home/myuser/web/mongo/mongodb-linux-x86_64-3.2.7/bin/mongod --auth --dbpath /home/myuser/web/mongo/data/ --port 34012 --fork --logpath /home/myuser/logs/user/mongo_db.log
[06:33:53] <bambanx> and for stop the only way i founded is : killall -15 mongodb, kill pid is not working at all
[06:36:55] <bambanx> Boomtime, can you give me a hand ?
[06:38:17] <bambanx> also wich free gui for mongo are using guys?
[06:49:47] <bambanx> you use like some mental powers?
[06:50:08] <Boomtime> mongodb stores data exactly as it receives it, there is nothing in the world that can tell you if it's "correct" because only you decide what is correct
[06:50:33] <Boomtime> if you can query your data, pretty much at all, then mongodb is doing it's job just fine
[06:50:44] <bambanx> should be tools for check what's going on with your data i think
[06:50:56] <Boomtime> but things like monitoring load are another ball game
[06:51:07] <Boomtime> use cloud manager -> cloud.mongodb.com
[06:51:46] <Boomtime> @bambanx: that is a logistically impossible request - "check your data" is meaningless - what do you want to check? be specific
[06:52:21] <Boomtime> if you just want to know if stuff is accessible and general stats like size and counts etc, are there then the answer is cloud manager
[06:53:41] <Boomtime> so be specifc: what do you want to check?
[06:53:59] <bambanx> if i have an app for store : title and post for example, and for some unknown events , my database is saving data in a wrong way or the relations betwen user and posts are wrong, all that shpuld be tested on the app itself so no related to database?
[06:54:40] <Boomtime> the database doesn't know what your app intends to do with the data - how could it?
[06:54:54] <Boomtime> it's like spelling your name wrong - the database isn't going to know that
[06:55:16] <Boomtime> if you want to check that all the data is readable then you can run validate -> https://docs.mongodb.com/manual/reference/command/validate/#dbcmd.validate
[06:55:36] <Boomtime> but 99.999% of the time it is a completely pointless exercise
[07:06:28] <bambanx> just asked if is good idea add a cron for check it time by time
[07:08:34] <Boomtime> i'm sorry... are you a time traveler?
[07:09:16] <Boomtime> ok, yes, you could use cron to check it occasionally
[07:09:59] <Boomtime> there really shouldn't be any reason for the process to exit though - also, you asked about ways to terminate the server, you could also use the shutdownServer command from the mongo shell with appropriate permissions
[07:11:01] <bambanx> how do you know i am time traveler Boomtime ? are you john? john titor?
[07:11:47] <bambanx> skynet will drop all the fire if i dont secure this database john
[07:13:49] <bambanx> Boomtime, compass does not have price on the page, do you know how much cost?
[08:59:47] <sandstrom> I've got issues with stacked fsynclock making it impossible to unlock using `db.fsyncUnlock()` Has anyone had this issue?
[09:46:48] <krion> hi guys, how can i investigate a chunk migration that result in a "data transfer error" ?
[10:01:40] <krion> how is the balancer host determined ?
[11:11:54] <Mmike> when using mongo cli - is there a way NOT to display some field from some document? I have a document that has some 'log' field which holds like 10k documents
[11:12:06] <Mmike> and printing that on screen is cumbersome, to say the least
[13:43:04] <cslcm> If I wanted to search for documents with A = hashed index OR A in multikey index ordered by a date index, is that doable in an efficent way?
[14:48:56] <cslcm> Does the $in operator use indexes?
[14:49:30] <Derick> it should - but use explain to make sure it does
[15:02:51] <cslcm> Derick: I'm quite new so the explain is rather tricky for me to read :/
[15:09:49] <deathanchor> cslcm: you can pastebin the explain, but the important stuff is the nscanned stuff, also look at the explain() docs online
[15:15:00] <cslcm> nti@87.253.171.209) has left #mongodb
[15:15:50] <cslcm> since i don't see anything to do with nscanned in there
[15:16:49] <deathanchor> oh this is 3.2 mongo? and looks like on a sharded cluster
[15:17:29] <cslcm> mongodb-3.2.5 and yes, sharded cluster
[15:18:31] <deathanchor> hmm... I haven't done much troubleshooting queries in 3.2 yet. mostly working in 2.x world.
[15:19:19] <deathanchor> is the shardkey on entityUsers?
[15:21:00] <deathanchor> cslcm: if you query through mongos and it spans multiple shards, the sort will happen on the mongos side instead of on the mongod server.
[15:21:21] <deathanchor> basically it will query the mongod servers, get results, then merge and sort on the mongos.
[15:22:54] <deathanchor> this becomes super painful when you do stuff like skip() with a sort() on mongos as it will query mongod, sort on mongos, and then mongos skips to wherever
[15:23:41] <cslcm> right, will it do an index assisted search?
[15:23:46] <cslcm> right, will it do an index assisted sort?
[15:23:49] <deathanchor> I don't know if 3.2 fixes the problem but in 2.x it would have mongos do the sort/skipping even if your query had the shardkey only hit data on one mongod.
[15:24:06] <cslcm> and no the shardkey is on objectKey, not used in this query
[15:24:12] <deathanchor> cslcm: not sure, mongos is a bit of a blackbox to me.
[15:24:31] <deathanchor> it might not use an index
[15:24:34] <cslcm> ok, well thanks for your help anyway :) it's appreciated
[15:25:30] <deathanchor> it might do the sort on mongod server, but then has to merge sorted lists on the mongos
[15:31:44] <spleen> deathanchor, arr.. i have to install python on my prod servers.. is there a bash check to do that ?
[15:35:18] <deathanchor> spleen: you don't need to install it on your prd servers
[15:35:42] <deathanchor> you can install python on your monitor server and have it connect via mongo to your prd servers
[15:36:29] <deathanchor> there is host/port options for the command
[15:37:01] <spleen> deathanchor, ok ! i have just to install python on my monitoring server
[15:37:35] <deathanchor> yeah then configure your check to run the command local on the montior server with the -H -P options to connect to where it should
[15:37:47] <spleen> question : what is the difference between optime & optimeDate via rs.status() command in Mongo ?
[15:41:10] <GothAlice> deathanchor: On your earlier comment about light-weightness; all database services can be reasonably expected to consume all available resources on their respective hosts. They don't play well with others, and this is a good thing, to keep data in RAM cache as much as possible. One of the difficulties with sorts/merges is that they can't easily be streamed, you must gather the results first, and that takes RAM.
[15:48:52] <spleen> deathanchor, on my monitoring server i need wish paquage just for connect to mongo ? mongo-cli something like that ?
[16:02:22] <Mmike> Hi, again! :) How do I copy documents across collections? I tried this, but it won't work: db.collectionB.insert(db.collectionA.find({"_id":"myNeededId"}))
[16:02:31] <Mmike> but I'm getting: can't save a DBQuery object at src/mongo/shell/collection.js:134
[16:04:52] <cheeser> you'll have to query, iterate, insert
[16:11:43] <spleen> The best information to know if mongo rsm are sync or not according to you, is optime -> ts when rs.status() or timeDiff when db.getReplicationInfo() ?
[16:16:11] <kurushiyama> spleen Compare the optimes of rs.Status()
[16:18:20] <spleen> kurushiyama, optime is the same thing of OptimeDate but in timestamp mode (then i exec rs.status())?
[19:13:27] <Mmike> Hola, again :) I need to somehow prettyprint mongo collection
[19:13:38] <Mmike> it's just three documents but one of the fields in one docs is huge
[19:13:58] <Mmike> I tried several tools but they all claim that my document is flawed: http://jebo.me/pas/1g
[19:14:30] <Mmike> I created stateServers.json using bsondump agains the .bson file created by mongodump
[19:18:50] <jayjo> I have asked a similar question here before - is there a way to have a user defined function or VIEW in mongodb? My very particular use case right now is to return a result (like views, or clicks) for the last 10 days at any given day. Can I have a stored query with a dynamic aspect somehow, or is it entirely dependent on the api I access the DB with?
[19:19:51] <jayjo> Or could I automatically create a collection that is just the last 10 days, etc?
[19:19:57] <jayjo> SO I could just query the collection?
[19:36:15] <Doyle> For .find() operations, you need to call an operation on the result object to print the documents, such as toArray() or shellPrint(). e.g., mongo userdb --eval "printjson(db.users.find().toArray())" - http://stackoverflow.com/questions/4837673/how-to-execute-mongo-commands-through-shell-scripts
[19:57:29] <jayjo> cheeser: would that not just kill the index and not the document?
[20:04:27] <jayjo> is that right - the _id field doesn't not support TTL indexes?
[20:36:56] <deathanchor> jayjo: I believe so. TTL index cannot be primary index.
[20:54:38] <cschneid_> I'm looking at the drivers in ruby - is moped deprecated / for older versions - and mongo-ruby-driver newer? How are they related/different?