MongoDB sharding, how does it balance when adding new nodes?

I am trying to understand MongoDB and the concept of sharding. If we start with two nodes and partitions, say customer data based on last name, where A th M data is stored on node 1 and N thru Z data is stored on node 2. What happens when we want to scale and add more nodes? I just don’t understand how this will work.

+5
source share
2 answers

If you have 2 nodes, this does not mean that the data is divided into 2 parts. It can be divided into sections to say that 10 pieces and 6 of them are on the server. 1 ane rest is on server 2.

MongoDB

:

+5

, MongoDB . , . .

, . .

node , MongoDB . , , node 2 " " " MongoDB"

+3

All Articles