title: How to increase connections in mongodb
body: <p>I start MongoDB this way by running a script startmongo.sh which will start all the below in order </p>
  
  <pre><code>./mongodb1.sh
  ./mongodb2.sh
  ./mongod3_arbiter.sh
  </code></pre>
  
  <p>Each mongodb1.sh , mongodb2.sh , mongodb3_arbiter.sh  consists of code as </p>
  
  <pre><code>mongod --config mongod1.conf
  
  mongod --config mongod2.conf
  
  mongod --config mongod3_arbiter.conf
  </code></pre>
  
  <p>I want to increase the connection limit to 10000 , so i wanted to specify attribute ulimit -n 10000 </p>
  
  <p>My question is do i need to specify this attribute all the above conf files ??</p>
  
  <p>Right now the conf consists of </p>
  
  <pre><code>replSet = test
  fork    = true
  port    = 27017
  dbpath  = /mongologs/mongodb3
  logpath = /mongologs/mongo/mongodb3
  rest = true
  </code></pre>
  
  <p>Please let me know , thanks in advance .</p>