When we shard a collection MongoDB distributes its data across all the shards of the cluster. MongoDB uses chunks, split and round balancing for getting it. For all of you who want to read about it here it is our last post MongoDB Pre-splitting. This is how MongoDB allows our […]
set up
3 posts
Definition A sharded cluster is a set of Replica Sets (shards) whose mission is to distribute the load uniformly, so that we can scale horizontally our applications in order to work with huge amounts of data. Advantages of a sharded cluster The main features of a sharded cluster are:
We will see how to set up our mongod services in order to deploy a Replica Set and for getting high availability and automatic data replication. The first thing we need is to have MongoDB installed in our computer. If you do not remember how to do it, you can […]