Mongo Cluster sharded replica cluster design question
From comments:


mongoS doesn't need much memory/CPU (or even its own machine) and can be located (installed) on the config servers. 
config servers don't need that much memory, even when mongoS is there; 1-2GB is enough. 


– JJussi