Database Reference
In-Depth Information
If everything goes well, you won't see any output from the console, which means the
adding process was successful. This is shown in the following screenshot:
To see the status of sharding, you can use the sh.status() command. This is demon-
strated in the following screenshot:
Next, we will establish another standalone mongod instance and add it to the sharding
process. The port number of mongod is 27016 and the hostname is mon-
god1.sharding.com .
The following screenshot shows the output after starting the new mongod instance:
Using the same approach, we will add the preceding node to the sharding process. This is
shown in the following screenshot:
Search WWH ::




Custom Search