Created by Cherryleer / @Happy Tech Group
MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling.
A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects.
Start MongoDB with a configuration file.
mongod --config /etc/mongodb.conf
A replica set is a group of mongod instances that host the same data set.
Sharding is a method fot storing data across multiple machines.
The shard key determines the distribution of the collection’s documents among the cluster’s shards.
Balancing is the process MongoDB uses to distribute data of a collection evenly across a cluster.
Chunk migration moves the chunks of a shard collection from one shard to another and is part of the balancer process.
As chunks grow beyond the specified chunk size a mongos instance will attempt to split the chunk in half.
Created by Cherryleer / @Happy Tech Group