I have a database db on mongodb server
s0 with collection
coll which is not sharded. To shard this collection I set up a sharded cluster and add
s0 to replica set
rs0. Now I want to add the sharded cluster to this replica set
rs0 so that on replication the collection gets sharded in the cluster. But mongos cannot be added to a replica set. How do I add this cluster to
Note: I am aware of the other way to shard an existing collection but there are downtime considerations in that approach.