i have created sharding in MONGOD with 3 shard servers(S1,S2,S3), sharding is enabled in S1,S2,S3.
**mongos> sh.status()
--- Sharding Status ---
sharding version: {
"_id" : 1,
"minCompatibleVersion" : 5,`enter code here`
"currentVersion" : 6,
"clusterId" : ObjectId("592a59b9057c510a56f528e3")
}
shards:
{ "_id" : "s1", "host" : "s1/localhost:37017,localhost:37018,localhost:37019" }
{ "_id" : "s2", "host" : "s2/localhost:47017,localhost:47018,localhost:47019" }
{ "_id" : "s3", "host" : "s3/localhost:57017,localhost:57018,localhost:57019" }
active mongoses:
"3.2.13" : 1
balancer:
Currently enabled: yes
Currently running: no
Failed balancer rounds in last 5 attempts: 0
Migration Results for the last 24 hours:
2 : Success
databases:
{ "_id" : "school", "primary" : "s1", "partitioned" : true }
school.students
shard key: { "student_id" : 1 }
unique: false
balancing: true
chunks:
s1 1
{ "student_id" : { "$minKey" : 1 } } -->> { "student_id" : { "$maxKey" : 1 } } on : s1 Timestamp(1, 0)**
the above code mentions that database (school) created in MONGOS is shared with S1 automatically.
will database SCHOOL effect in other shards(S2,S3)?
Please help me in verifying sharding is running perfectly between S1,S2 and S3 with database SCHOOl.
In above case how does data available for application in case of one set crashed which has unique data among all other sets,is restarting the set will work ,how exactly behavior would be