Setting up a MongoDB cluster can be a little difficult for the first time. A MongoDB cluster consists of three types of servers: Config Servers, Query Routers, and Shards. In a production environment where high-availability is a must, you will need at least (3) config servers, (2) or more Shards, and (1) or more Query Routers.