简体   繁体   中英

Poor performance in MongoDB sharding

I am new with MongoDB sharding, and we are facing performance issues. I tried with many test cases with three servers and I feel MongoDB sharding does not give better performance compare to single instance of mongod on a single server.

Am I correct? If I am not correct then kindly provide test collection, shard key, and load test procedure.

Test case 1:

I did one load test between single instance on a mongod and single shard ( http://docs.mongodb.org/manual/core/sharded-cluster-architectures-test/ ) and I observed 40% performance degradation in sharding setup because of mongos and config server.

Does mongos and config server take 40% server resources?

Test case 2:

We observed 10K TPS on single instance of mongod instance. We observed 5.1K TPS in mongo shard on three servers with same capacity hardware (we used same server for single mongod instance test). We used shard key as hashed index ObjectId.

Why we could not get 10K+ performance with three servers? Is there any way to get 10K + performance using sharding? If yes then how?

Use couchbase instead. We stopped using MongoDB due to it's poor performance compared to what is out there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM