[06:21:28] <trietptm> Hello everybody, I'm using elasticsearch with mongodb. After I restart my computer and insert new documents to the collection, elasticsearch doesn't seem to index the new documents.
[06:23:08] <trietptm> I see some people tell to remove the river of elasticsearch but I don't know how?
[06:27:33] <SomeoneWeird> say I have an array of objectIds, is there a way to pull all of those objects from a collection in 1 query ?
[06:35:12] <trietptm> I follow these 2 links: http://satishgandham.com/2012/09/a-complete-guide-to-integrating-mongodb-with-elastic-search/ and http://www.elasticsearch.org/guide/reference/river/
[06:35:21] <trietptm> I have tried curl -XDELETE 'http://localhost:9200/_river/mongodb/_meta' and curl -XDELETE 'http://localhost:9200/_river/mongodb/'
[07:33:45] <solars> hey, can anyone suggest a monitoring tool for mongodb? (web based) - found mongobird, is it good?
[09:07:45] <meson10> I am using mgo. What is the best practice of database pooling ? Should I store and Session and return a Copy() every time I need a connection to the database ?
[09:14:31] <Nodex> the MongoClient handles pooling for you normaly
[09:53:57] <haqe17> sorry if this is a naive question, but how hard is it to communicate with a mongodb over a network?
[10:10:49] <rspijker> haqe17: about as hard as it is to communicate locally
[12:00:52] <Infin1ty> Anyone know how to upgrade the metadata correctly upgrading from 2.2.5 to 2.4.5 using config metadata since 1.x? there's no clear procedure for that
[12:29:58] <Maro> Hi, can anyone explain why you need to have a majority of voters in Site A in a geographically distributed replica set when you can set the priority of a member in Site A to be higher? I have 1 member in Site A, 1 in B, 1 in C and the priority of the members in B and C are < 1...
[12:35:55] <mstastny> Hi, I am testing disaster recovery of one lost config server in a sharded environment.
[12:35:55] <mstastny> 1. in a lab I have 3 config servers, single shard (either single machine or replset, does not make any difference).
[12:35:55] <mstastny> 2. now I turn off the first config server (to simulate the disaster)
[12:35:55] <mstastny> 3. according to the documentation (http://docs.mongodb.org/manual/tutorial/replace-config-server/), now I should:
[12:35:55] <mstastny> - deploy a new server with the same IP/DNS name, do not run mongod
[12:35:56] <mstastny> - disable the balancing, to process with further steps
[12:35:57] <mstastny> The problem is that I am not able to disable the balancing on mongos, I get the following error:
[12:45:45] <n06> hello all, can anyone help me debug an error with my config servers
[12:46:03] <n06> they seem to be out of sync and I'm not sure how to rectify that
[12:46:46] <n06> ERROR: config servers not in sync! config servers [redacted] differ#012chunks: "f1d513b6e60138d7f281d8fa5d635539"#011chunks: "86c49e48fed9d6bd8eaac8cc19b288f2"#012databases: "3cdb90eafc32b5fe9473d6db4500f9e6"#011databases: "3cdb90eafc32b5fe9473d6db4500f9e6"
[13:14:10] <n06> is there a good way to find out which of two config servers has the correct / up-to-date data?
[13:14:31] <n06> the out of sync issue happened over the weekend so i think they've both moved on
[13:17:35] <Zitter> hi, any tutorial on how to use mongodb to store curriculum vitae/resume? tia
[13:25:04] <rspijker> n06: have a look at the changelog collection on both and see which has the latest timestamp
[13:25:21] <n06> rspijker, thanks i'll check it out now
[13:25:29] <rspijker> n06: that one should be the one with the latest info. Than I think your best bet is to restore that data to the other nodes
[13:25:57] <n06> gotcha, so find the latest data, and rsync to the stale config server
[13:27:22] <rspijker> probably want to make sure nothing is happening in terms of chunk migration or anything when you are doing this… Otherwise it could very well destroy your routing
[13:28:03] <n06> yeah i took a look at the config server migration docs so I feel ok with that, i just need to find the right data
[13:28:14] <n06> it looks like both of these servers have the latest stuff
[13:28:24] <rspijker> then those two should be in sync
[13:28:45] <rspijker> either way, back up both just in case I am wrong ;)
[13:31:09] <n06> rspijker, its so weird though because i keep getting these sync errors in my log
[13:31:58] <rspijker> how many cfg servers do you have?
[13:33:09] <rspijker> ok, so why can't two be in sync and the 3rd one cause the errors?
[13:33:35] <n06> it can, but since this is production i would rather have no errors :p
[13:33:41] <rspijker> although cfg servers going out of sync should be a fairly rare thing
[13:34:00] <rspijker> as in, should only happen if a node goes down during chunk migration or something like that (afaik)
[13:34:09] <n06> yeah, and i also think its affecting performance
[13:34:22] <n06> because everything slowed way down over the weekend
[13:35:28] <rspijker> I'm not sure why that would be the case… Maybe something during routing, but I simply don't know enough about the routing routine to be sure
[13:35:50] <n06> thats ok, thanks very much for the help anyways, if i figure it out ill let you know
[14:40:46] <DestinyAwaits> I have to start learning MongoDB from Java & Scala Perpective where do I start any book available that can help me get started.. ?
[15:25:01] <kali> harenson: i've stop referring people to it, because people were asking questions about discrepancies betweens its old syntax and the documentation
[17:21:17] <awestwell> basically I want to have a method that runs on the server in an eval and be able to return the DBObject as a result from the eval
[18:16:11] <baconmania> Hey guys, quick question about denormalized schemas. If I have a collection where each document is structured like
[18:26:43] <baconmania> kali: when you say denormalization, you mean have a separate collection just for the "a" objects, and then the original collection would just reference the new "a" collection?
[18:33:15] <kali> baconmania: what i was thinkg was: A is a scalar, having a collection with all A values and not touching your current collection is a denormalisation... now if A is a big thing and you're going to reference it, then yes, we'd better talk about re-normalisation :)
[18:35:27] <kali> within aggregation framework limits of course (it will break if there are two many A values)
[18:35:51] <baconmania> kali: in that case, what is the "best" way to do it for large numbers of A values?
[18:35:58] <baconmania> separate collection for A?
[18:36:13] <pngl> What is the database command underlying the shell method find()? findAndModify seems to only find/affect a single record.
[18:37:26] <kali> baconmania: map/reduce would still work... but be an order of magnitue slower than AF (itself obviously slower than the two-collection form)
[18:38:09] <kali> baconmania: it all comes down to what are the read/write ratio, the query frequencies and acceptable response time
[18:53:32] <jcalvinowens> Hello all, quick question: If I do a regex search like "^.+words", will Mongo use an index on the field? It's a bit hard to tell if it is or not...
[18:54:09] <jcalvinowens> But once many users are hitting it, not having the index could be a big drag on performance
[19:52:42] <dchau> Hi, I work on a project using mongodb. I experience a strange behavior. A document containing a sub-document is inserted. Just after the insert, finding by Id works but finding with the exact match of the sub-document returns no result. This problem only occurs a few moment just after the insert.
[19:53:21] <dchau> when a execute the same request later, it works
[19:53:39] <dchau> so at runtime it fails and when debugging, it works...
[21:47:55] <SpNg_> I'm trying to convert a standalone install to a replica set. when I do rs.status() in my mongo shell I get "errmsg" : "can't currently get local.system.replset config from self or any seed (EMPTYUNREACHABLE)". tailing the mongod.log I see getaddrinfo("ip-10-0-0-145") failed: Name or service not known. this is on AWS. any ideas what could be going on?
[21:50:34] <joshua> Can you connect from one server to the other?
[21:50:52] <joshua> Bring up a mongo shell on that server and connect to the other member of the replica set
[21:51:15] <joshua> Also, I think it is suggested to use hostnames and not IP addresses. It makes reconfiguration easier
[21:52:40] <SpNg_> joshua: i can connect to the mongo instance from another one of the servers on my network
[21:53:10] <SpNg_> I'm using a mongod.conf file to control everything.