Mongodb: Can I create an unshard Replica set for a sharded cluster

mongodbreplication

I have a 3 node shard cluster mongoDB with replica set, and want to add (single node replica set) a un-sharded Replica set to collect all data in one node.

Can I create an unshard Replica set for a sharded cluster?

Best Answer

mongodb: Can I create an unshard Replica set for a sharded cluster?

As per MongoDB documentation here Starting in MongoDB 3.6, all shards must be replica sets. Before you can upgrade your 3.4 sharded cluster to version 3.6, you must convert any shards that are running as standalone mongod instances to replica set shards.

Note: To converts a standalone shard to a single-member replica set shard. The procedure assumes that the single member runs on the same host and port as before.