3
votes

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?

1
Foursquares uses Mongo to store millions of daily checkins. So it must be possible. Maybe this presentation would give you some insight, which you could use to make your question more precise (less broad). - ixe013
it's is not the readers' job to provide you test collection, shard key and load procedure. This is not really an appropriate forum of this type of question - it's not about programming and it doesn't have a simple answer. - Asya Kamsky

1 Answers

-10
votes

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