If you want some of the data on machine a and some on machine b, that is the purpose of sharding.
In replica sets each machine in a replica set has the whole data set.
So you would want:
2 shards, each of which has one primary, one secondary, and one arbiter
The arbiters can be tiny or can be on one of the nodes that is a primary or.secondary for the other shard. Their only purpose is to vote.
You'd need config servers as well. They track which data is on which server and can be very small.
See http://www.mongodb.org/display/DOCS/Sharding+Introduction for more info.
-- Max
Hello I read all the documentation concerning mongoDB/replica sets and so one.
I still have a question. How is a dataset exactly stored? It says, that the sec. nodes copy the oplog in order to execute the operations theirselves.
Does every sec. node copy all the oplog?
For example, a client makes a write operation (lets say 5GB vol.)
are these 5 GB stored on the prim. node and every sec. node? every time?
For example, I have 4 server each with 32GB storage. Actual I want
to store 64GB data and replicate that due to the other 64 GB.
I would suggest to use 1 prim. node, 3 sec. nodes and 1 arbiter (for breaking ties).
Would I have "only" 32 GB storage and the other 96GB storage would only replicate? Or
does the data volume gets split somehow?
Best regards
--
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
See also the IRC channel -- freenode.net#mongodb
If you want some of the data on machine a and some on machine b, that is the purpose of sharding.
In replica sets each machine in a replica set has the whole data set.
So you would want:
2 shards, each of which has one primary, one secondary, and one arbiterThe arbiters can be tiny or can be on one of the nodes that is a primary or.secondary for the other shard. Their only purpose is to vote.
You'd need config servers as well. They track which data is on which server and can be very small.
See http://www.mongodb.org/display/DOCS/Sharding+Introduction for more info.
-- Max
On Jul 31, 2012 8:11 AM, "Tim" <tim.a.zimmermann@googlemail.com> wrote:
Hello I read all the documentation concerning mongoDB/replica sets and so one.
I still have a question. How is a dataset exactly stored? It says, that the sec. nodes copy the oplog in order to execute the operations theirselves.
Does every sec. node copy all the oplog?
For example, a client makes a write operation (lets say 5GB vol.)
are these 5 GB stored on the prim. node and every sec. node? every time?
For example, I have 4 server each with 32GB storage. Actual I want
to store 64GB data and replicate that due to the other 64 GB.
I would suggest to use 1 prim. node, 3 sec. nodes and 1 arbiter (for breaking ties).
Would I have "only" 32 GB storage and the other 96GB storage would only replicate? Or
does the data volume gets split somehow?
Best regards
--
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