I am trying to learn sharding in MongoDb and here is my plan:
I'm trying to shard the database S001 into 2 different machines.
192.xx.xx.60>mongod -configsvr --dbpath S001
..Now running in port 27019
Only one database
S001 is there
192.xx.xx.60>mongos -configdb 192.xx.xx.60:27019,192.xx.xx.61:27019,192.xx.xx.62:27019 ..Some messages...
Whereas now it is showing 2 different databases called
I don't understand the following points:
1. how were these 2 new database created?
2. Is my database now sharded?
3. How to continue further?
FYI: Still now I haven't set up replication so I'm trying to shard without replication.
Totally stuck and unable to continue further. Please share your suggestions.