All settings changes are made through /etc/mongod.conf in the net section:
maxIncomingConnections: 999999 – raises the limit of incoming connections, by default it is 64×103.
serviceExecutor: adaptive – we change the pool operation model, by default MongoDB creates a thread for each connection, adaptive switches to a model with workers (one thread serves many connections).