MongoDB load balancing?

Both Master Slave and Replica Sets will load balance in MongoDB, if you set slaveOK in your driver When slaveOK is enabled MongoDB drivers direct all reads to secondaries/slaves This provides relatively effective read balancing; for write balancing your only option. Would be sharding.

Both Master Slave and Replica Sets will load balance in MongoDB, if you set slaveOK in your driver. When slaveOK is enabled MongoDB drivers direct all reads to secondaries/slaves. This provides relatively effective read balancing; for write balancing your only option.

Would be sharding.

1 Bah, pipped to the post :) – AdaTheDev Mar 31 at 13:27 Thanks Brendan. On sharding, my understanding is that the key should belong to a group/pattern only then it will be effective. For ex: Timestamp (Range), state to partition data.

If my shard key is unique then won't it degrade performance? Also if my data is not huge & lets say there is a pattern for the shard key then won't it better to shard on the same machine for faster response times? – isobar Apr 1 at 2:46 Sharding is a whole other bag of worms.

I recommend going through Kristina's post on selecting a shard key to better understand: snailinaturtleneck. Com/blog/2011/01/04/… – Brendan W. McAdams Apr 1 at 20:01.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions