[00:05:34] <henrykim> is there anyway to recognize a document to load whether it is page-fault of not? I mean that loading operation is from memory or not.
[00:05:49] <henrykim> page-fault of -> page-fault or
[01:42:12] <multi_io> how does mongodb convert a shard key value to a shard number?
[02:06:09] <freezey> anyway to have a repica set member ignore a node it cant talk to?
[09:04:23] <negaduck> hi! how to delete an object attribute? In ruby i've got pr = $db['accounts'].find_one({:uid => uid}). I'd like to delete, for example, pr['email'].
[09:17:07] <ranman> I think there are a couple replset tests in there
[09:18:00] <bjori> ranman: there shouldn't be any problem - there are couple of tickets about when reading from secondaries.. but we haven't been able to reproduce it
[09:18:33] <SLNP> basically we have a test replica set running on 2 machines
[09:19:03] <SLNP> we are unable to connect to the set we get: PHP Fatal error: Uncaught exception 'MongoCursorException' with message 'couldn't determine master' in /root/mongotest.php:7
[09:19:30] <SLNP> we have tried 2 different php versions and 3 driver versions
[09:19:44] <bjori> SLNP: that happens when the driver cannot connect to your primary
[09:20:01] <SLNP> we can connect if we don't connect as a replica set
[09:20:08] <SLNP> if we connect to just a single host it's fine
[09:20:21] <SLNP> also when I use the python driver to connect to the rs it works fine
[09:21:47] <SLNP> test results: =====================================================================
[09:39:01] <SLNP> We ran monosniff, and tested. When the replicaSet option is defined on the client we cannot see anything from the sniff output coming from the client
[09:40:48] <bjori> SLNP: please file a bug report, and include all the data you can (your script, mongod configs, rs.status()...)
[09:56:12] <ranman> I can read japanese because I learned ruby
[10:00:31] <SLNP> Ok we are a little further with the issue
[10:07:56] <SLNP> The replica set is set up using host names not IP addresses, so when we use the hostnames in the connection string it works. However this is not the case with the Python driver, with the Python driver you can pass an IP address and it's fine.
[10:43:25] <bjori> SLNP: ahh! that makes sense. the php driver uses the information retrieved from the replicaset, and if you added the servers with hostnames your machine needs to be able tor esolve it
[12:53:37] <kanzie> hmm, if I have a collection in a collection then… didn't quite work. I have users and in users I have a collection called privs that has entries. I want to do something like db.users.privs.update({}, {$set:{'active':1}}, false, true)
[13:49:23] <edvorkin> Hi. I am new to MongoDB, just get installed one on EC2 from amazon Marketplace. what is the correct way to secure it? I see only port 22 open
[13:51:06] <ifesdjeen> edvorkin: limit interfaces you listen to, add authentication, disallow foreign connections
[14:38:02] <edvorkin> security question - in sharded configuration, should I add authentication only to mongos or to all members of the cluster?
[14:44:35] <NodeX> looks like last.fm has been hacked alongside linked in
[15:02:53] <SLNP> is there a news article about it?
[15:42:51] <railsraider> i see a lot of killcursors: found 1 of 1 and mongo loosing connections, any idea why?
[15:55:07] <m4nti5> I've been playing arround with mongodb a few weeks now using the mongo-C driver, BUT I was using an old version (v0.4), I downloaded from git the 0.6 version and saw that there is a new parameter in several functions, I've been trying to find out how that works, but I think I don't get it yet, can you recommend me some documentation that describes the behavior of that param?
[17:57:51] <carsten> logging all traffic without explict permission or option to opt out logging is rude
[18:25:50] <mbarr> Hello all.. trying to determine the impact of a large /dev/shm on Mongo's use of memory - RHEL 6.2 x86_64 linux...
[18:26:50] <mbarr> I don't believe it's going to use the memory, but i'm just checking to make sure it's not able to shrink it automatically, or use it in another fashion.
[18:29:03] <tomlikestorock> how do I query on a key's value that is in a list of embedded documents?
[18:50:54] <fkefer> Hi all; I tried installing mongod-gen10 server in fedora17, but selinux insists on not allowing it
[19:02:33] <m4nti5> tomlikestorock: please be more especific with what you want, perhaps use paste bin to paste an (idented) example of the document and say
[19:14:46] <m4nti5> is it possible to set a mongo_write_concern in a mongo_run_command function in the mongo C driver?
[19:24:53] <m4nti5> ranman: thanks for the link, I've read it already, and didn't say anything about a way to use it for the mongo_run_command function, I also read http://www.mongodb.org/display/DOCS/getLastError+Command, my question is actually can I do a getlasterror all along with the mongo_run_command
[19:25:25] <ranman> m4nti5: on that one I'm not sure sorry :(
[19:25:27] <m4nti5> I can do 2 run_command, but I would like to save the second call
[19:26:14] <m4nti5> the thing is, I'm using run_command to do an autoincrement with findAndModify
[19:26:35] <m4nti5> and it's really important that I find out if the operation succedded
[19:28:29] <pneff> Hey I need some help with a query. Im running an or query that contains two different fields and is sorted by a date field. When I run each part of the or segment individually or without the sort everything runs fine but when i try to run the entire thing as one query it stalls out. I'm assuming this has something to do with the indexing. Each field that is searched or sorted has an index but not a composite index. Here's my query : db.cdr_record
[19:28:29] <pneff> s.find({$or:[{called_num:"7033483543"}, {trans1_num:"7033483543"}]}).sort({start_time:-1}) Any reason why this would just stall out?
[19:29:16] <carsten> m4: why don't you just call getLastError() after each command?
[19:55:01] <mattbillenstein> anyone know of a good way to dump/restore a database over a pipe — like over ssh?
[19:55:13] <mattbillenstein> you can do this with a collection using mongodump/mongorestore
[19:55:27] <harrymoore> pneff: use .explain() on your query to see what index it is using
[19:55:41] <pneff> but I'm only selecting on one since its an or query. http://www.mongodb.org/display/DOCS/Indexing+Advice+and+FAQ
[19:56:01] <pneff> harrymoore: tried that but it just sits there and never outputs anything.
[19:59:14] <rudolfrck> anyone here using mongo_mapper with rails 3.2? I'm looking for some help on a small issue...
[20:04:35] <harrymoore> pneff: did you try without the .sort()
[20:05:23] <pneff> harrymoore: yeah works with out the sort
[20:06:32] <pneff> harrymoore: but the query works just fine if its only a single field with the sort which is kind of annoying
[20:09:16] <harrymoore> pneff: try a composite index which also includes the field you are sorting on. try .hint() to force the query to use that index
[20:11:24] <pneff> harrymoore: k ill see what that does.
[20:25:38] <mateodelnorte> Anyone have pointers for debugging why a node app would "crash" sans error message or stack trace while interacting w/ mongod? The only clue I have is seeing "SocketException handling request, closing client connection: 9001 socket exception [2] server [127.0.0.1:51434]" in my mongod logs. Using node-mongodb-native.
[20:44:35] <m4nti5> carten: I didn't want to use it, but that's what I did in the end, thanks
[20:45:10] <m4nti5> is there a way to change a bson_oid_t in after it's finished?
[20:45:24] <m4nti5> I'm handling a case of duplicate entries
[20:49:35] <m4nti5> dstorrs: sorry, I'll try to explain myself better
[20:49:37] <dstorrs> you have two records with the same ObjectID value and you want to change one of them?
[20:50:56] <dstorrs> does anyone have experience using Mongo as a backing store / intermediation point for a distributed messaging service (a la RabbitMQ, Celery, etc) ?
[20:51:36] <m4nti5> no, I'm using the mongo C driver, and I create a bson in the client side with an ID (a regular bson_oid_t), the thing is, there is a chance that the ID I'm generating it's already saved in the server (because all ID's I'm generating are client-side IDs)
[20:52:54] <dstorrs> I haven't dealt with the C driver at all, sorry
[20:53:12] <m4nti5> so that will generate a duplicate entry error, the thing is, the bson migth be too big so copying it or regenerating can be very heavy, so, I was wondering if somebody knows a way to re-generate the bson_oid without creating the bson again
[20:54:09] <jmorris> would anyone know why the output of Model.find(...) in mongoose would not agree with what i see from the command line mongo : db.model.find() ?
[21:09:16] <wb_> when storing images on s3 or gs and managing meta-data in mongo, do people typically create a separate collection of image meta-data? or embed the meta-data inside the documents they are associated with
[21:10:14] <doug> is there a synchronous find() call for node.js?
[21:10:15] <wb_> it seems like it would be easier to just have a separate collection for image meta data, rather than constantly reaching inside documents.
[21:11:20] <dstorrs> wb_: if the metadata is finite and not constantly growing, I would probably embed it. but either way works
[21:12:07] <dstorrs> in general NoRel DBs (a term I prefer over 'NoSQL' -- more accurate) reward you for having a rich data model and putting it all in one document
[21:13:49] <wb_> thanks dstorrs. I think I will try just sticking it in one document, and hope for the best
[21:34:41] <themoebius> I'm getting these messages on my mongos server. ChunkManager: time to load chunks for pb3.hourly_stats: 2990ms sequenceNumber: 1425 version: 38915|169
[21:35:16] <themoebius> I've manually moved a few chunks under high load i wonder if it has anything to do with it
[22:55:35] <richardraseley> Question: Can anyone point me towards resources that talk about the multi-datacenter capabilities of MongoDB?
[22:56:40] <richardraseley> I am primarily interested in finding out about how we can read from and write to the same data from multiple locations - depending on optimistic replication to reconcile the differences over time.
[22:58:36] <richardraseley> Also, does MongoDB provide the capability to scale the active capability of a particular shard. It seems (based on my limited understanding) that only one server in a replica set will ever be able to handle both reads and writes, and therefore you are limited in shared performance for writes to that of a single server. Is the solution to this simply creating more shards across which you will spread the entire data set?
[23:04:19] <m4nti5> It looks like there is a leak in the mongo C driver
[23:05:06] <m4nti5> when you're using the write_concern attr, it internally calls to mongo_check_last_error, and there the response bson is not destroyed
[23:05:49] <dstorrs> richardraseley: http://docs.mongodb.org/manual/administration/replication-architectures/ Look for "Geographically Distributed Sets"
[23:11:17] <m4nti5> dstorrs: hummm I'm kind of lost here, it looks like that link is for server reports
[23:11:19] <richardraseley> dstorrs: In that scenario, a second site can always only provide reads / DR.
[23:11:35] <m4nti5> dstorrs: what I found was a C client driver issue
[23:11:44] <richardraseley> dstorrs: There can never be two active (providing writes and reads) sites such as you could have with Cassandra, correct?
[23:12:30] <m4nti5> dstorrs: oh never mind, I found it
[23:13:06] <dstorrs> richardraseley: I don't see why not
[23:13:15] <dstorrs> network latency would suck, but you could do it.
[23:25:12] <richardraseley> dstorrs: How so? The documentation seems clear that you can only have one master in a replica set... or am I not understanding that?
[23:26:04] <richardraseley> So, even if I have 3 shards, two of which have masters in site A and one in site B, I can still only fully access data (on whatever shard it lived) from one site at a time.
[23:27:44] <dstorrs> you said "there can never be two active" -- I understood that to mean "servers". which is perfectly fine if they are masters of separate shards.
[23:28:49] <dstorrs> as to doing multi-master replication throughout a replica set -- I believe Mongo may have supported something like that at one point, but they migrated away.
[23:28:59] <richardraseley> Sorry, that was not my intent. To put it differently, one can never have read / write access to the same chunk from two different physical sites and expect those operations to be eventually consistent.
[23:29:07] <dstorrs> maybe it was just regular master / slave I didn't care enough to research it since it wasn't relevant.
[23:29:48] <dstorrs> you should talk to someone with more experience than me.
[23:30:16] <richardraseley> Heh, that is why I am in this channel. =] I appreciate your help though.
[23:30:23] <dstorrs> I'm able to answer most of the questions in here because I've actually RTFM'd a lot, but I haven't had the chance to do replication yet, so it's just book learning
[23:36:45] <multi_io> how does mongodb convert a shard key value to a shard number?