Re: [mongodb-user] Abridged summary of mongodb-user@googlegroups.com - 100 Messages in 28 Topics

8 views
Skip to first unread message

Blaine Murray

unread,
Sep 7, 2010, 11:35:02 AM9/7/10
to mongod...@googlegroups.com
On 9/7/10, mongodb-us...@googlegroups.com
<mongodb-us...@googlegroups.com> wrote:
> =============================================================================
> Today's Topic Summary
> =============================================================================
>
> Group: mongod...@googlegroups.com
> Url: http://groups.google.com/group/mongodb-user/topics
>
> - MongoDate quirks [3 Updates]
> http://groups.google.com/group/mongodb-user/t/973c1f731ce629dc
> - GridFS pymongo delete files? [6 Updates]
> http://groups.google.com/group/mongodb-user/t/68a6c073d5b0866f
> - cluster with two shards - 5k/s ? [10 Updates]
> http://groups.google.com/group/mongodb-user/t/2fc32a253fadcc8e
> - How to add reference to collection through the shell [1 Update]
> http://groups.google.com/group/mongodb-user/t/aa196678cb4c8e51
> - sharding mongos high cpu load [7 Updates]
> http://groups.google.com/group/mongodb-user/t/4d5461ad9d4dd6e2
> - mongo down! [2 Updates]
> http://groups.google.com/group/mongodb-user/t/902ecb9113ce5dfa
> - Move from 32-bit to 64-bit [2 Updates]
> http://groups.google.com/group/mongodb-user/t/eaf0d6fccf888160
> - Backup in sharded environment [2 Updates]
> http://groups.google.com/group/mongodb-user/t/df79103b969485c5
> - Will MongoDB use multiCore CPU? [6 Updates]
> http://groups.google.com/group/mongodb-user/t/b25df9604a58d5ff
> - Bug specifying the $gt operator in embedded documents [4 Updates]
> http://groups.google.com/group/mongodb-user/t/7d8ecf6ae7f493b9
> - Auto-sharding by date [2 Updates]
> http://groups.google.com/group/mongodb-user/t/8f77a59cac82bd07
> - Another mongodb Django ORM [3 Updates]
> http://groups.google.com/group/mongodb-user/t/af48b4eba6355cb0
> - Guidance on parsing db.command("serverStatus") [2 Updates]
> http://groups.google.com/group/mongodb-user/t/9fd41ec9b556e454
> - map-reduce: summing hashes of {word: count, word2: count} [1 Update]
> http://groups.google.com/group/mongodb-user/t/529f5d07f1500e42
> - problem setting up replica sets [14 Updates]
> http://groups.google.com/group/mongodb-user/t/3c426b25537346b9
> - [mongo_bench] Building a set of perf tools [4 Updates]
> http://groups.google.com/group/mongodb-user/t/d8790e963cc264c6
> - trouble setting up replica set [3 Updates]
> http://groups.google.com/group/mongodb-user/t/2b505290bcb89470
> - Bug in interrupted initial sync [3 Updates]
> http://groups.google.com/group/mongodb-user/t/6d7de787d59eb24b
> - bind_ip [2 Updates]
> http://groups.google.com/group/mongodb-user/t/2ea7567fa2742a41
> - problem with $in statement in PHP [3 Updates]
> http://groups.google.com/group/mongodb-user/t/edca68ff57cee495
> - [perl] Trying to print all ids. What am I doing wrong? [3 Updates]
> http://groups.google.com/group/mongodb-user/t/a343e0cbd3ed46a3
> - GridFS write performance problems on Windows [1 Update]
> http://groups.google.com/group/mongodb-user/t/2206330154187ddc
> - mongo shell and the --eval [8 Updates]
> http://groups.google.com/group/mongodb-user/t/4425242deaf449df
> - safe to run 1.6.2 master with 1.4.3 slaves? [2 Updates]
> http://groups.google.com/group/mongodb-user/t/64d9c4db1b408705
> - Large Scale Mongo Questions [1 Update]
> http://groups.google.com/group/mongodb-user/t/b2ffa5ca33588d5
> - mongod segmentation fault [3 Updates]
> http://groups.google.com/group/mongodb-user/t/fa1365fe8c26333c
> - Assertion failure in mongodb 1.6.x [1 Update]
> http://groups.google.com/group/mongodb-user/t/d260c09b9b80f05e
> - Problem with connection to DB in stable-1.6 [1 Update]
> http://groups.google.com/group/mongodb-user/t/951cf3353aaf2649
>
>
> =============================================================================
> Topic: MongoDate quirks
> Url: http://groups.google.com/group/mongodb-user/t/973c1f731ce629dc
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Josh K <josh...@gmail.com>
> Date: Sep 06 07:51PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/6210866d68c0ff5c
>
> I recently ran into an issue with timestamps and the PHP MongoDB
> driver (more details:
> http://joshuakehn.com/blog/index.php/basic/view/47/MongoDB-PHP-Driver-Issue-with-Dates).
>
> Currently I add
>
> ---------- 2 of 3 ----------
> From: Kristina Chodorow <kris...@10gen.com>
> Date: Sep 07 10:21AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/723ccc2c2e0b4a1c
>
> Which version of the driver are you using? Recent versions shouldn't let
> you have a usec field of less that 1000.
>
> If I run echo (new MongoDate(strtotime(date("Y-m-d H:i:s")))) I get
>
> ---------- 3 of 3 ----------
> From: Joshua Kehn <josh...@gmail.com>
> Date: Sep 07 10:49AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/384ba78bc13f7378
>
> Commit hash eb23f0a36cd30a4423a729b1e3901f0b8662710f from July.
>
> None of the code touches the usec field. Only handles the sec field, and
> only when it inserts a post.
>
> Regards,
>
> -Josh
>
>
> =============================================================================
> Topic: GridFS pymongo delete files?
> Url: http://groups.google.com/group/mongodb-user/t/68a6c073d5b0866f
> =============================================================================
>
> ---------- 1 of 6 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 10:37PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/e5aba216c64a408a
>
> If you want to delete all files you should just drop the fs.files and
> fs.chunks collection.
> To do other deletes has to be file by file so the meta data and data
> collections are cleaned.
>
>
>
> ---------- 2 of 6 ----------
> From: Joseph Wang <joseph...@yahoo.com>
> Date: Sep 06 10:01PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/361bc19697929d2c
>
> MongoConnnection: add server ip-10-160-86-4 at port 10000
> MongoConnnection: add server ip-10-161-50-230 at port 10000
> ...
>
>
> SEVERE: switched to: ip-10-160-86-4:10000 but isn't master
>
> ---------- 3 of 6 ----------
> From: Valery Khamenya <kham...@gmail.com>
> Date: Sep 07 10:10AM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/de983a9cc5e1f0d6
>
>
>> If you want to delete all files you should just drop the fs.files and
>> fs.chunks collection.
>
>
> well, as for my Q2, I've found the answer already:
>
> ---------- 4 of 6 ----------
> From: Kristina Chodorow <kris...@10gen.com>
> Date: Sep 07 10:16AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/f87a2a08730cecdd
>
> What does your code look like? Are you calling "new Mongo(ip1, ip2)"? If
> you're connecting to a slave, you should just say "new Mongo(ip1)".
>
>
>
>
> ---------- 5 of 6 ----------
> From: Michael Dirolf <mi...@10gen.com>
> Date: Sep 07 10:26AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/e69d095d40be4780
>
> A lot of these operations become pretty clear when looking at the
> underlying structure of a GridFS collection, even if there aren't
> helper methods designed specifically for each task.
>
> ---------- 6 of 6 ----------
> From: Joseph Wang <joseph...@yahoo.com>
> Date: Sep 07 07:46AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/3f8c528bdb858977
>
> String[] servers = server_list.split(",");
> ArrayList<ServerAddress> addr = new ArrayList<ServerAddress>();
> int serverCount = 0;
> for (int i = 0; i <
>
>
> =============================================================================
> Topic: cluster with two shards - 5k/s ?
> Url: http://groups.google.com/group/mongodb-user/t/2fc32a253fadcc8e
> =============================================================================
>
> ---------- 1 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 06 05:31PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/830a751e3891358a
>
> I have a similar problem. I have set up a cluster of two shards (each one is
> a replica set of one node). And I am importing large chunks of data with
> mongoimport. The rate fluctuates but it can drop
>
> ---------- 2 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 06 05:32PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/da4ba4021abc15d7
>
> Import to unsharded collection (and without index on "uiq", the shard key to
> be) goes at pretty constat rate of 50k/sec
>
> On Mon, Sep 6, 2010 at 5:31 PM, Sergei Tulentsev <sergei.t...@gmail.com
>
> ---------- 3 of 10 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 11:58AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/d6bd1c68adb9abd
>
> What version are you running?
> Can you try 1.7.0? There are some large performance improvements in there
> that should go into 1.6.3
>
> On Mon, Sep 6, 2010 at 11:32 AM, Sergei Tulentsev <
>
>
> ---------- 4 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 06 11:24PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/6bd9dc8c375c3f8
>
> Have tried 1.7.0. No significant changes. Performance dies the moment I
> shard the collection.
> Back to 1.6.2 now. Right now I am importing 800M rows without indexes or
> sharding. Will add that after
>
> ---------- 5 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 07 11:46AM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/653182d52a438017
>
> Ok, so I've imported all of my data within 7 hours and started building
> index. It's been 8 hours by now and still counting. I though that building
> index is faster operation than inserting data. :-)
>
> ---------- 6 of 10 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 08:46AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/f7d611ebae2aad30
>
> Looking at the web console will give you a % completion for index building.
>
> On Tue, Sep 7, 2010 at 5:46 AM, Sergei Tulentsev <sergei.t...@gmail.com
>
>
> ---------- 7 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 07 02:50PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/95a4e7dc8c2f1100
>
> but what if the server is launched without --rest? no web console?
>
>
> --
> Best regards,
> Sergei Tulentsev
>
>
> ---------- 8 of 10 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 08:51AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/e270a49aa330f7e3
>
> Try it :)
> Is the in the basic version.
> Also db.currentOp()
>
> On Tue, Sep 7, 2010 at 8:50 AM, Sergei Tulentsev <sergei.t...@gmail.com
>
>
> ---------- 9 of 10 ----------
> From: Sergei Tulentsev <sergei.t...@gmail.com>
> Date: Sep 07 03:04PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/6098e6f2995bc8ea
>
> When I try it on mongos it gives me almost blank page. No data.
> When I talk directly to the server, it fails with "could not acquire read
> lock"
>
> db.currentOp shows quite a number of operations
>
> ---------- 10 of 10 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 10:38AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/8ee80a07a979259f
>
> It depends on a lot factors and certainly can be normal.
> Also - that % is on part 2/3, so probably closer to 75% done of total time
>
> On Tue, Sep 7, 2010 at 9:04 AM, Sergei Tulentsev
>
>
> =============================================================================
> Topic: How to add reference to collection through the shell
> Url: http://groups.google.com/group/mongodb-user/t/aa196678cb4c8e51
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: GuidoLx <guido....@gmail.com>
> Date: Sep 07 07:29AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/730cb32ef9d1e490
>
> Hello,
>
> I have two collections "roles" and "permissions" in my db.
> I want to affect to given roles a given set of permissions.
> I do not know how to append permissions to a role object I retrieved
>
>
> =============================================================================
> Topic: sharding mongos high cpu load
> Url: http://groups.google.com/group/mongodb-user/t/4d5461ad9d4dd6e2
> =============================================================================
>
> ---------- 1 of 7 ----------
> From: Oli <dot...@googlemail.com>
> Date: Sep 06 08:08AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/f004f35580611afb
>
> http://npaste.de/ia/
>
> anyone seen somethin similiar before?
> running mongodb1.6.2 in a "sharded" environment with currently only
> one shard
>
> things i dont understand:
>
> Mon Sep 6 16:21:55
>
> ---------- 2 of 7 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 12:01PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/f577143493af9dff
>
> Are you doing a number of map/reduces?
> There is a concurrency issuing with many map/reduces in mongos.
> Could that be happening here?
>
>
>
> ---------- 3 of 7 ----------
> From: Oli <dot...@googlemail.com>
> Date: Sep 06 09:14AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/4dbb2b438e4b55f2
>
> yeah you're right im doing a few mapreduces parallel
> what do you think is a too large number of concurrent mapreduces?
> will this issue be resolved in 1.6.3?
>
> thanks
>
>
>
> ---------- 4 of 7 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 12:20PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/71bf4ca713486b05
>
> We're trying to resolve for 1.6.3.
> If you can provide a reproducible case would help a lot.
>
>
>
> ---------- 5 of 7 ----------
> From: hmeiser <dreht...@googlemail.com>
> Date: Sep 07 12:16AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/8b562980c4b12c93
>
> Hi,
>
> we observed also a 100% cpu-load of the mongos process while executing
> a
> map/reduce with this mongos process. the mongos is installed on the
> client
> and not on the sharded nodes.
>
>
> ---------- 6 of 7 ----------
> From: Oli <dot...@googlemail.com>
> Date: Sep 07 04:50AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/e926483ee0bdf781
>
> Could you tell me something about the DBException errors?
> I got a lot of them like this:
> DBException in process: can't do update with query that doesn't have
> the shard key
>
>
>
> ---------- 7 of 7 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 10:30AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/65bf6553054d7a79
>
> If you do an update with a query that doesn't have the _id or shard key, it
> has to be a multi update so we can safely send to all servers.
>
>
>
>
>
> =============================================================================
> Topic: mongo down!
> Url: http://groups.google.com/group/mongodb-user/t/902ecb9113ce5dfa
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Meghan Gill <meg...@10gen.com>
> Date: Sep 07 09:33AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/2a4759167bd313b8
>
> Hi everyone,
>
> I'm forwarding this on behalf of Mars who cannot access Google Groups
> from China, can you please help and reply all?
>
> Thanks,
> Meghan
>
>
> ---------- Forwarded message ----------
>
> ---------- 2 of 2 ----------
> From: Ashwin Mangale <ashwin....@gmail.com>
> Date: Sep 07 07:51PM +0530
> Url: http://groups.google.com/group/mongodb-user/msg/ea88daee01773c3d
>
> Hi Mars,
> Can you try starting mongodb service after deleting mongod.lock file ( if
> present ) in /var/lib/mongodb directory?
>
> -Ashwin
>
>
>
>
> =============================================================================
> Topic: Move from 32-bit to 64-bit
> Url: http://groups.google.com/group/mongodb-user/t/eaf0d6fccf888160
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Torgeir <mrt...@gmail.com>
> Date: Sep 07 06:52AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/4d9d8f295492781d
>
> If we need to move to a 64-bit system, can the database files simply
> be copied over? Or do they need to be converted somehow?
>
> Thanks,
> Torgeir.
>
>
> ---------- 2 of 2 ----------
> From: Kristina Chodorow <kris...@10gen.com>
> Date: Sep 07 10:08AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/970826e4e77d711b
>
> The data files are identical, you can just copy them over.
>
>
>
>
> =============================================================================
> Topic: Backup in sharded environment
> Url: http://groups.google.com/group/mongodb-user/t/df79103b969485c5
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: hmeiser <dreht...@googlemail.com>
> Date: Sep 07 12:34AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/5fa9e905de5b5f77
>
> Ok, but this will work only if not all nodes of a shard died.
> If we have 2 shards and with 2 nodes each (4 nodes). Then if both
> nodes of a shard
> die we can not use our backup to restore them
>
> ---------- 2 of 2 ----------
> From: Kristina Chodorow <kris...@10gen.com>
> Date: Sep 07 10:07AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/21511bded5ba42e3
>
> The point of a replica set is to try to keep at least one member up at all
> times: you should try to minimize the risk of all of them crashing (put
> different members in different data centers, if
>
>
> =============================================================================
> Topic: Will MongoDB use multiCore CPU?
> Url: http://groups.google.com/group/mongodb-user/t/b25df9604a58d5ff
> =============================================================================
>
> ---------- 1 of 6 ----------
> From: Peng Guo <gpcu...@gmail.com>
> Date: Sep 07 04:48PM +0800
> Url: http://groups.google.com/group/mongodb-user/msg/46865da636839342
>
> When MongoDB doing parallel query, will it use multiCore CPU?
>
> Thanks.
>
> --
> Regards
> Peng Guo
>
>
> ---------- 2 of 6 ----------
> From: Andreas Jung <li...@zopyx.com>
> Date: Sep 07 11:04AM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/a88ec7ff42229229
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Peng Guo wrote:
>> When MongoDB doing parallel query, will it use multiCore CPU?
>
> What do you mean with parallel query? A single query won't be
>
> ---------- 3 of 6 ----------
> From: Dwight Merriman <dwi...@10gen.com>
> Date: Sep 07 05:13AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/86c0ef39adfa9212
>
> correct.
>
> in a future version a single map/reduce will saturate all cores, this
> is planned but not scheduled for a specific release (not imminent, not
> 1.8)
>
>
>
>
> ---------- 4 of 6 ----------
> From: Peng Guo <gpcu...@gmail.com>
> Date: Sep 07 06:59PM +0800
> Url: http://groups.google.com/group/mongodb-user/msg/6e5723f4959c3d5c
>
> How about multiple db.eval()?
>
> I will remove the lock in eval for not block the whole system.
>
>
> --
> Regards
> Peng Guo
>
>
> ---------- 5 of 6 ----------
> From: Andreas Jung <li...@zopyx.com>
> Date: Sep 07 03:47PM +0200
> Url: http://groups.google.com/group/mongodb-user/msg/eb17893d3cf7812d
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Peng Guo wrote:
>> How about multiple db.eval()?
>
>> I will remove the lock in eval for not block the whole system.
>
> Also without knowing the
>
> ---------- 6 of 6 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 10:04AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/f707189207c19000
>
> db.eval is also single thread like map/reduce.
> The general problem being poor support for concurrency in javascript
> engines.
>
>
>
>
> =============================================================================
> Topic: Bug specifying the $gt operator in embedded documents
> Url: http://groups.google.com/group/mongodb-user/t/7d8ecf6ae7f493b9
> =============================================================================
>
> ---------- 1 of 4 ----------
> From: RameshVel <rame...@gmail.com>
> Date: Sep 07 01:49AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/a86ba5b8d6e87b4f
>
> Hi All,
> $gt operator fetches the records whose value is greater than **or
> equal** to the given value while querying embedded documents. But this
> fetches the greater than values only in normal
>
> ---------- 2 of 4 ----------
> From: RameshVel <rame...@gmail.com>
> Date: Sep 07 01:43AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/3bb655cf2fde4238
>
> Hi All,
> $gt operator fetches the records whose value is greater than **or
> equal** to the given value while querying embedded documents. But this
> fetches the greater than values only in normal
>
> ---------- 3 of 4 ----------
> From: Kyle Banker <ky...@10gen.com>
> Date: Sep 07 07:33AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/9299ff090e3bf77
>
> Can you provide a sample document that allows us to reproduce this? Can't
> reproduce from what you've given.
>
>
>
> ---------- 4 of 4 ----------
> From: nipra <prabhaka...@gmail.com>
> Date: Sep 07 05:20AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/830c620484e6b876
>
> Hi,
>
>>      $gt operator fetches the records whose value is greater than **or
>> equal** to the given value while querying embedded documents. But this
>> fetches the greater than values only in
>
>
> =============================================================================
> Topic: Auto-sharding by date
> Url: http://groups.google.com/group/mongodb-user/t/8f77a59cac82bd07
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: octave <chi...@gmail.com>
> Date: Sep 07 03:02AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/624f71d78f9c0dea
>
> Hi there,
>
> I have the following collection:
>> db.Entry.stats()
> {
> "ns" : "eventr.Entry",
> "count" : 8231672,
> "size" : 25494603004,
> "avgObjSize" :
>
> ---------- 2 of 2 ----------
> From: Kyle Banker <ky...@10gen.com>
> Date: Sep 07 07:38AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/98affb86e37974ff
>
> Sharding is designed to partition a single collection evenly across multiple
> machines. Is that what you're looking to do?
>
> Are you experience performance problems with the current configuration? If
>
>
> =============================================================================
> Topic: Another mongodb Django ORM
> Url: http://groups.google.com/group/mongodb-user/t/af48b4eba6355cb0
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Mini <min...@gmail.com>
> Date: Sep 07 03:10AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/90d0e10af6037ad8
>
> Hello,
>
> I started another mongodb Django ORM project, mongomodel at
> https://code.google.com/p/mongomodel/
>
> Even though there're many good mongodb/Django models, what I want to
>
> ---------- 2 of 3 ----------
> From: Waldemar Kornewald <wkorn...@gmail.com>
> Date: Sep 07 04:00AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/79a22c3004b36714
>
>> focus is  supporting Django Admin Site and Join.
>
>> Sure as MongoDB doesn't support Join itself, my implementation is very
>> poor at its design and performance. Just it works anyway.
>
>
> ---------- 3 of 3 ----------
> From: Min <min...@gmail.com>
> Date: Sep 07 08:32PM +0900
> Url: http://groups.google.com/group/mongodb-user/msg/549641eaff5130dd
>
> Thanks for the reply.
>
> I found that there're already great works on mongodb backend. I could merge
> or replace the backend on django-nonrel.
> I'm going to look into deeply the project and get more
>
>
> =============================================================================
> Topic: Guidance on parsing db.command("serverStatus")
> Url: http://groups.google.com/group/mongodb-user/t/9fd41ec9b556e454
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Ian <kaya...@gmail.com>
> Date: Sep 06 08:16PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/812bfe3fadb36714
>
> I'm trying to obtain performance statistics for a mongodb instance
> with the following command:
> Map mymap = db.command("serverStatus").toMap();
>
>
> Many of these keys map to integer
>
> ---------- 2 of 2 ----------
> From: Dwight Merriman <dwi...@10gen.com>
> Date: Sep 07 05:16AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/7caf979262775eec
>
> i guess it depends what you want to do with the values. you might
> want to right a recurive function to depth first traverse.
>
> tojson( db.runCommand("serverStatus") )
>
> can be useful to get the
>
>
> =============================================================================
> Topic: map-reduce: summing hashes of {word: count, word2: count}
> Url: http://groups.google.com/group/mongodb-user/t/529f5d07f1500e42
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 01:58AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/feeb89feb9a5f5b
>
> Are you sure about eval and watch showing up?
>
>> x = { a : 1 }
> { "a" : 1 }
>> for ( z in x ) print(z)
> a
>
> Otherwise I think that looks good.
>
> On Mon, Sep 6, 2010 at 10:22 AM, James K
>
>
> =============================================================================
> Topic: problem setting up replica sets
> Url: http://groups.google.com/group/mongodb-user/t/3c426b25537346b9
> =============================================================================
>
> ---------- 1 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 09:11AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/b7e9c09d50c5bfa5
>
> Hi,
>
> I made some mistakes trying to setup replica sets, and have reversed
> it and gone back to running
> a single server. I remove the --replSet at startup and removed all
> the local.* files in
>
> ---------- 2 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 08:57AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/34dc16aee4bae07c
>
> Hi,
>
> I made some mistakes on setup and I am trying to go back and start
> over.
> Unfortunately, I can't. I reverted back to single server by removing
> the --replSet
> flag and deleting all the
>
> ---------- 3 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 12:26PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/ffb6f9e00fc9bb58
>
> After you rm local.* and start with --replSet, you have to start the other
> node and initiate the set.
> You won't be able to access the server until the set is initiated.
>
>
>
> ---------- 4 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 09:52AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/e7eeccc70fb13fa9
>
>> After you rm local.* and start with --replSet, you have to start the other
>> node and initiate the set.
>> You won't be able to access the server until the set is initiated.
>
> I guess I'm in
>
> ---------- 5 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 12:58PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/79d364cbf6ecdf46
>
> You should
>
> 1) shut down all severs
> 2) rm local.*
> 3) start all servers with --replSet/<server1>,<server2>
> 4) run rs.initiate
>
> should be all set
>
>
>
> ---------- 6 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 02:52PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/4d9711190960b4ca
>
> Thanks for the help! I was able to get everything working.
>
> This blog post was a great help:
>
> http://www.snailinaturtleneck.com/blog/2010/08/30/return-of-the-mongo-mailbag/
>
> I now have a
>
> ---------- 7 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 06:54PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/d9d00c723e172cae
>
> That's not quite correct.
> When you add the replica set as a shard, you should add all the hosts you
> know about.
> Just to understand, you have 4 servers, so 2 shards with 2 servers in each?
>
>
>
> ---------- 8 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 04:17PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/7273283154eee6b8
>
> Yes, 4 servers, 2 shards with 2 servers in each.
> I just noticed that it seems to currently be behaving read-only as
> well...
>
> in Kristina Chodorow's Blog I followed the last steps:
>
>
> ---------- 9 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 07:27PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/ebc0d4d559b24b07
>
> Yes, comma separated. Don't need the arbiter.
>
>
>
> ---------- 10 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 04:29PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/d9ac1b718a714fb7
>
>> I just noticed that it seems to currently be behaving read-only as
>> well...
>
> Ah, this doesn't have anything to do directly with the replica sets or
> sharding.
> I've discovered this in the logs:
>
> ---------- 11 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 07:02PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/2c924f9e1b215d69
>
> How do I go about updating this now that it is set?
> Can I update it directly in the config db? If I do that, do I have
> to update it in each one? Sorry to need so much hand holding...
>
>
>
>
> ---------- 12 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 10:07PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/b0b37c3e7aba23cd
>
> Yes - you should update in config server.
> You can connect to all at once
>
> mongo --host configa,configb,configc
>
>
>
> ---------- 13 of 14 ----------
> From: stever <srita...@gmail.com>
> Date: Sep 06 09:01PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/54ed376b60df0dc7
>
> Does this look healthy?
> Anything else I can check?
> (In the process of "fixing" this I tried a removeshard which really
> did nothing because
> there isn't enough data in the db for sharding to happen
>
> ---------- 14 of 14 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 07 01:56AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/bc1640298de8093f
>
> That looks good to me.
>
>
>
>
> =============================================================================
> Topic: [mongo_bench] Building a set of perf tools
> Url: http://groups.google.com/group/mongodb-user/t/d8790e963cc264c6
> =============================================================================
>
> ---------- 1 of 4 ----------
> From: Justin <justin....@gmail.com>
> Date: Sep 06 10:22AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/32ed32ece5c960af
>
> Any recommendations on how to do that? My main concern is actually
> getting a good baseline, not a peak / optimal performance benchmark
> (in order to compare various configurations)
>
> Justin
>
>
>
> ---------- 2 of 4 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 01:31PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/4416b9a7576cf3ed
>
> Easy to check to see if your'e client or db bounce. If the driver is at
> 100% cpu, that's probably the bottleneck and you won't get great numbers.
>
> You also may want to take a look at this:
>
> ---------- 3 of 4 ----------
> From: Justin <justin....@gmail.com>
> Date: Sep 06 12:32PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/90389a2e97b7503d
>
> Getting an error ' Error: can't find library: mongoclient '
>
>
>
> ---------- 4 of 4 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 10:36PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/3148f123d6eb77de
>
> You have to build and install the c++ driver to use this.
>
>
>
>
> =============================================================================
> Topic: trouble setting up replica set
> Url: http://groups.google.com/group/mongodb-user/t/2b505290bcb89470
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Zac Witte <zacw...@gmail.com>
> Date: Sep 06 06:02PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/701b64bb598ddf0a
>
> I have a DB that is currently single-server and I'm trying to move it to a
> replica set. Currently everything is on app.checkin.to and I want to add
> s1db1.checkin.to and s1db2.checkin.to.
>
> ---------- 2 of 3 ----------
> From: Kyle Banker <ky...@10gen.com>
> Date: Sep 06 09:36PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/f2d4a50a93c0ac3a
>
> It seems like the operative error is that s1db1 and s1db2 can't find
> themselves in the config.
>
> replSet warning can't find self in the repl set configuration
>
> Are those machines using the default
>
> ---------- 3 of 3 ----------
> From: Zac Witte <zacw...@gmail.com>
> Date: Sep 06 07:20PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/a8424182be7d01a
>
> Ah, yes the hostnames were the issue.
>
> Thanks.
>
>
>
>
> =============================================================================
> Topic: Bug in interrupted initial sync
> Url: http://groups.google.com/group/mongodb-user/t/6d7de787d59eb24b
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: "Damon P. Cortesi" <d.life...@gmail.com>
> Date: Sep 06 05:15PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/9323a5766726b918
>
> Looks like everything came over just fine, thankfully.
>
> The one tricky part was updating the syncedTo timestamp - not sure how
> that's represented, but I ended up having to use the perl driver to
>
> ---------- 2 of 3 ----------
> From: "Damon P. Cortesi" <d.life...@gmail.com>
> Date: Sep 06 05:17PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/229f823ed68d0a44
>
> I forgot to mention, should I open a JIRA on this? It seems like when
> the initial sync was interrupted, then started again two days later,
> it should have updated te syncedTo value.
>
> ---------- 3 of 3 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 08:31PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/7554e3ed5e30aabc
>
> Yeah - go ahead and open a jira.
> Ideally with the entire log file.
>
>
>
>
> =============================================================================
> Topic: bind_ip
> Url: http://groups.google.com/group/mongodb-user/t/2ea7567fa2742a41
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Stuart Johnson <stu...@stu.org.uk>
> Date: Sep 07 12:24AM +0100
> Url: http://groups.google.com/group/mongodb-user/msg/20fdcca74c3d148e
>
> In the config file, can I bind to both local address and external addresses?
>
>
> ---------- 2 of 2 ----------
> From: Stuart Johnson <stu...@stu.org.uk>
> Date: Sep 07 01:21AM +0100
> Url: http://groups.google.com/group/mongodb-user/msg/73600909c5b70f53
>
>> In the config file, can I bind to both local address and external
>> addresses?
>
> Answering my own question: comment out "bind_ip"
>
>
>
> =============================================================================
> Topic: problem with $in statement in PHP
> Url: http://groups.google.com/group/mongodb-user/t/edca68ff57cee495
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Artee <arturs...@gmail.com>
> Date: Sep 06 01:36PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/7cfeb959b6bda98d
>
> How should I use PHP to make dynamic array like this (for example
> using data from other collection)?
>
> $sth=array(1,2,3,4,5);
>
> I must use array like $sth in my mongo query:
>
>
> ---------- 2 of 3 ----------
> From: Gabriel Sosa <sosag...@gmail.com>
> Date: Sep 06 08:01PM -0300
> Url: http://groups.google.com/group/mongodb-user/msg/48d9be4919d5027d
>
> dont use the $ inside quotes ("). Use (') otherwise php will try to
> replace the content of $in (in this case empty) more info in [1]
>
> your sentence should be
>
>
> ---------- 3 of 3 ----------
> From: Steve Kamerman <stevek...@gmail.com>
> Date: Sep 06 06:20PM -0500
> Url: http://groups.google.com/group/mongodb-user/msg/5ca355ad03da399
>
> You can change the modifier from "$" to something else, like ":" in PHP to
> prevent this type of issue.
> http://us3.php.net/manual/en/mongo.tutorial.php (see
> "mongo.cmd"). The change can be made in
>
>
> =============================================================================
> Topic: [perl] Trying to print all ids. What am I doing wrong?
> Url: http://groups.google.com/group/mongodb-user/t/a343e0cbd3ed46a3
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Amadeus <sha2...@gmail.com>
> Date: Sep 06 07:52AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/c949a1323be2653b
>
> Hi,
>
> I am completely new to MongoDB, so first of all I want to print all
> ID's in an existing MongoDB using Perl.
>
> The following script prints
>
> HASH(0x12e2e9f0)
>
> 25 times. I would have
>
> ---------- 2 of 3 ----------
> From: J Greely <dot...@gmail.com>
> Date: Sep 06 10:45AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/f5f8b5e99644e327
>
>> Any idea what's wrong?
>
> Because you retrieved the entire object as a reference to a hash, not
> the Object ID as a string.
>
>>     print $doc . "\n";
>
> print $doc->{_id},"\n";
>
> -j
>
>
> ---------- 3 of 3 ----------
> From: Amadeus <sha2...@gmail.com>
> Date: Sep 06 01:20PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/56d83d0462f99ddd
>
> Thank you very much! =)
>
>
>
> =============================================================================
> Topic: GridFS write performance problems on Windows
> Url: http://groups.google.com/group/mongodb-user/t/2206330154187ddc
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: "Sigurd Høgsbro" <sigurd....@museeka.com>
> Date: Sep 06 12:50PM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/e0a66d5e40461553
>
> I changed it to pass an iterable stream - open(path, 'rb') - but see
> no difference so far.
>
> I have noticed a correlation between the slow writes and the eventual
> return of the below error from the
>
>
> =============================================================================
> Topic: mongo shell and the --eval
> Url: http://groups.google.com/group/mongodb-user/t/4425242deaf449df
> =============================================================================
>
> ---------- 1 of 8 ----------
> From: Rick <rick....@gmail.com>
> Date: Sep 06 09:45AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/549bfad881cb755c
>
> Hi guys..
>
> Can anybody point me at the documentation for the mongo shell eval
> command?
>
> I'm trying to execute simple commands such as:
>
> $ mongo dbname --eval "db.collectionname.find()"
>
>
> ---------- 2 of 8 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 01:04PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/28095a5cbd1a44ad
>
> Can you send the exact output?
> What you're probably seeing is the DBQuery class output.
>
> try:
> mongo dbname --eval "db.foo.find().limit(10).forEach(printjson)"
>
>
>
> ---------- 3 of 8 ----------
> From: rick....@gmail.com
> Date: Sep 06 06:31PM +0100
> Url: http://groups.google.com/group/mongodb-user/msg/5894f1bef872e68c
>
> Well, for the example you gave of
>
> mongo dbname --eval "db.foo.find().limit(10).
> forEach(printjson)"
>
> This worked (I added some test data)
>
> If I just execute:
>
> mongo dbname --eval
>
> ---------- 4 of 8 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 01:32PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/1ed04296a46b35fb
>
> Right now, it'll just print the .toString of the result. In this case the
> .toString of the cursor object.
> Perhaps we can do something smarter if its an eval.
> Want to open a jira case?
>
>
>
> ---------- 5 of 8 ----------
> From: rick....@gmail.com
> Date: Sep 06 06:34PM +0100
> Url: http://groups.google.com/group/mongodb-user/msg/41b18ae76069e5cb
>
> Specifically, I want to write a set of scripts which will populate my
> database with data for use in my BDD tests
>
> So I was expecting to be able to pass sets of insert statements etc i.e.
>
>
> ---------- 6 of 8 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 01:38PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/d6f899cfa88fae3d
>
> That will work, but wouldn't it be easier to go straight? What language are
> your tests in?
>
>
>
> ---------- 7 of 8 ----------
> From: rick....@gmail.com
> Date: Sep 06 06:41PM +0100
> Url: http://groups.google.com/group/mongodb-user/msg/2450765c04c14c0f
>
> I'm writing everything in Javascript (using nodejs). The BDD framework I'm
> using is vows (vowsjs.org)
>
> There is an excellent driver available (
> http://github.com/christkv/node-mongodb-native)
>
> ---------- 8 of 8 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 03:29PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/a42f2ebaefd50740
>
> I would recommend talking to mongo directly using the node driver.
>
>
>
>
> =============================================================================
> Topic: safe to run 1.6.2 master with 1.4.3 slaves?
> Url: http://groups.google.com/group/mongodb-user/t/64d9c4db1b408705
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Chuck Remes <cremes....@mac.com>
> Date: Sep 06 01:39PM -0500
> Url: http://groups.google.com/group/mongodb-user/msg/58d9d94f6799f9af
>
> I have to do a rolling upgrade across my servers. Is it safe to have a mix
> of 1.6 and 1.4 servers in a master/slave configuration where the master is
> 1.6.2?
>
> cr
>
>
> ---------- 2 of 2 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 03:26PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/3c40ea8bfb3ac5fd
>
> While it might be the recommended way is to upgrade slaves first then
> master. We test that direction for backwards compatibility.
>
>
>
>
> =============================================================================
> Topic: Large Scale Mongo Questions
> Url: http://groups.google.com/group/mongodb-user/t/b2ffa5ca33588d5
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: GVP <gat...@gmail.com>
> Date: Sep 06 11:11AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/ed5dcdb955598752
>
> @Verrier:
>
> What's probably happening is that your dataset has gotten too big for
> you RAM.
>
> When you start, everything fits in RAM (data and indexes) and so all
> of the queries are fast.
>
>
>
> =============================================================================
> Topic: mongod segmentation fault
> Url: http://groups.google.com/group/mongodb-user/t/fa1365fe8c26333c
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Mike Richmond <richmo...@gmail.com>
> Date: Sep 06 12:39PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/4637fafb627e2cb0
>
> We have a mongodb 1.6.2 auto-sharding installation running across 16
> servers divided into 8 replica sets (each machine has 1 other server in
> a replica set, along with an arbiter).
>
>
> ---------- 2 of 3 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 12:57PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/42e316974934e55f
>
> Can you send the entire log for one of the servers?
> Can attach to a jira case if its big.
>
> Couple of other questions:
> - did you build this with 1.6.2 or upgrade a 1.6.0 or 1.6.1 cluster?
>
> ---------- 3 of 3 ----------
> From: Mike Richmond <richmo...@gmail.com>
> Date: Sep 06 01:14PM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/7386015efcb5bc64
>
> Cluster and all nodes were built with 1.6.2
>
> Will create a JIRA ticket with an attached log soon. Need to scrub IPs
> from the log first.
>
>
> --Mike
>
>
>
> On 9/6/10 12:57 PM, Eliot Horowitz
>
>
> =============================================================================
> Topic: Assertion failure in mongodb 1.6.x
> Url: http://groups.google.com/group/mongodb-user/t/d260c09b9b80f05e
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Eliot Horowitz <elioth...@gmail.com>
> Date: Sep 06 11:42AM -0400
> Url: http://groups.google.com/group/mongodb-user/msg/32a978a93ed9bbba
>
> That assertion was most likely caused by a bug present in 1.6.0 and 1.6.1
> That requires a repair.
> So upgrading to 1.6.2 fixed the code problem, but you needed to do a repair
> to fix the data
>
>
> =============================================================================
> Topic: Problem with connection to DB in stable-1.6
> Url: http://groups.google.com/group/mongodb-user/t/951cf3353aaf2649
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Adam Fields <fie...@street86.com>
> Date: Sep 06 07:55AM -0700
> Url: http://groups.google.com/group/mongodb-user/msg/6c39098885899695
>
> I saw this problem as well, and in this particular case upgrading all
> of the potential clients that may connect is a big hassle that needs
> to be planned for. As far as I can tell, this
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>
>


--
Kind Regards
-Blaine

Reply all
Reply to author
Forward
0 new messages