Hi can we remove a shard from a Sharded Cluster if we wrongly added a sharded cluster
When i am validating the lab it is giving me the error that
Mongos not configured correctly - make sure you have only added one shard to your cluster.
Here’s my shard status when i run sh.status()
shards:
{ “_id” : “m103-example”, “host” : “m103-example/192.168.103.100:27011,m103:27012,m103:27013”, “state” : 1, “draining” : true } { “_id” : “m103-repl”, “host” : “m103-repl/192.168.103.100:27001,m103:27002,m103:27003”, “state” : 1 }
As i have two entries in my sharded cluster. Is there a way we can remove a sharded cluster. In my case I want to remove m103-example cluster. Please help.