OK, I am a bit confused.... This link seems to say that it is possible
to shard dbs (i.e., collections as a whole are spread across shards)
unless I read it wrong:
http://www.google.com/url?sa=D&q=http://www.mongodb.org/display/DOCS/Configuring%2BSharding%23ConfiguringSharding-EnablingShardingonaDatabase
But this ticket indicates that it is currently not possible:
http://www.google.com/url?sa=D&q=http://jira.mongodb.org/browse/SERVER-939
Is it possible or not? If yes, this could be a solution for my setup.
Markus
On Feb 11, 5:51 pm, Scott Hernandez <
scotthernan...@gmail.com> wrote:
> That is possible, but at the moment all un-sharded collections (in a
> sharded db) will be on the default shard unless you move them. There
> is a feature to support spreading the collections across shards in a
> sharded db.
>
>
http://jira.mongodb.org/browse/SERVER-939
>
>
>
>
>
>
>
> On Fri, Feb 11, 2011 at 2:47 PM, Robert Wohleb <
rwoh...@gmail.com> wrote:
> > From what I've seen, you can enable sharding on the DB level, but not on the
> > collection level. The result is that the collections get evenly distributed
> > among the shards, but each collection remains whole. A write for any
> > particular collection will go to the proper shard. Am I understanding this
> > correctly?
> >
http://www.mongodb.org/display/DOCS/Configuring+Sharding#ConfiguringS...
> > ~Rob
> > On Fri, Feb 11, 2011 at 2:36 PM, wue <
markus....@gmail.com> wrote:
>
> >> Thanks for the quick reply. I should have mentioned that we have many
> >> collections with anywhere between 5k - 100k objects. I think sharding
> >> only kicks in at larger collections. FindAndRemove (i.e.,
> >> findAndModify with the remove flag) still all go to the master, right?
> >> If yes, replica sets don't give me much gain as there are very little
> >> finds without modify.
>
> >> Markus
>
> >> On Feb 11, 4:47 pm, sridhar <
srid...@10gen.com> wrote:
> >> > Writes to the replica set always go to the primary but you can read
> >> > from secondaries. For horizontal scaling you can use the sharding
> >> > feature of Mongo. More information on sharding can be found
> >> > athttp://
www.mongodb.org/display/DOCS/Shardingandits sub documents.