Is there a way to configure a distributed environment with mongodb? Can I configure a distributed environment system with mongodb? (For example, master and slave structures)

My job is to insert the data into the master and read the data,
Slave nodes read data by dividing it, send it to the master node,
It is a method to combine the data received from the slave nodes in the master node.

I have now set up the slave and master. (mongod --master, mongod --slave)
Nowadays, master - slave system is not used anymore. You create replica set (RS) where you have one PRIMARY and at least one SECONDARY (plus arbiter), but minimum two SECONDARY are preferred. 

In the RS, write is happening ALWAYS to current PRIMARY and preferred read is also from PRIMARY, but you can configure reading happening from SECONDARY too, but.. Information is not guaranteed to be up-to-date (until SECONDARY has replicated it OR write concern is so strict that OK is not returned until all nodes have it; what is not recommended).