We are currently setting up a sharded cluster with MongoDB, config servers have been set up using a configuration file : mongod.conf pointing out alternative paths for data and logs folders :
systemLog:
destination: file
path: "/home/mongo/logs/mongod.log"
logAppend: true
storage:
journal:
enabled: true
dbpath: "/home/mongo/data"
processManagement:
fork: true
net:
bindIp: 127.0.0.1
port: 27019
sharding:
clusterRole:configsvr
Using the docs (https://docs.mongodb.org/manual/reference/configuration-options/), I've seen that it is possible to launch mongos using a similar file, problem is, I don't know if this file should be different from mongod.conf. So far I have not seen anyone use a mongos.conf file...
Should the file be identical? Just changing paths, port and clusterRole? And adding a "configDB:" lign?