Reputation: 1103
Hi All i have set up a mongo cluster using thsi configuration
This set is in place and already running.
I want to add replica set to these two shard now means each shard will have two replica. My question is
Upvotes: 1
Views: 2837
Reputation: 43884
How can i add replica set to existing cluster when each shard is already
Have you read the documentation on sharding tutorials?
http://docs.mongodb.org/manual/administration/sharded-clusters/
Each Replica will carry the same db space as its corresponding shard having almost 2 TB data with them?
Not sure what you mean, if you mean it will replicate the data on the other two shards then no. It will hold as much as it balanced out to it.
Should i use different machine to host these replica to ensure fail over?
If you are using the same machine for your replicas then why have a sharded replica cluster?
The whole point of the sharded replica cluster setup is to distribute workload amoung many servers in a cluster.
Using the same server for it all kinda defeats the point...
That goes for using a single server for a replica set too, no point really...
Upvotes: 1