开发者

MongoDB load balancing

I was looking at best load balancing option for concurrent users with Mongo DB. I have looked at Master Slave replication but don't think this will load balance. Are there any open source DB load balancers for Mongo DB?

I开发者_开发知识库 have looked at Sequoia but looks like that project is no longer actively supported.

Please note: The data is not very huge & also not use case for 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜