MyDB automatic reconnection plugin
var db = require('mydb')('/');
var reconnect = require('mydb-reconnect');
reconnect(db, { connectTimeout: 5000 });Options:
retryTimeouthow long to wait before reconnection attempts (10000)connectTimeouthow long after a connection attempt to give up (10000)