title: node.js mongodb how to connect to replicaset of mongo servers
body: <p>I am using <code>mongo</code> and <code>node.js</code> in an application. The mongo database consists of two servers. </p>
  
  <p>In the example given in <a href="http://howtonode.org/express-mongodb" rel="nofollow">http://howtonode.org/express-mongodb</a>, i can connect to one server using: </p>
  
  <pre><code>ArticleProvider = function(host, port) {
   var database = 'node-mongo-blog';
   this.db= new Db(database, new Server(host, port, {auto_reconnect: true}, {}));
   this.db.open(function(){});
  };
  </code></pre>
  
  <p>But how can I connect to multiple servers, in my case there are two servers.</p>