Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection pooling and usage #90

Open
kokujin opened this issue Jan 29, 2013 · 1 comment
Open

Connection pooling and usage #90

kokujin opened this issue Jan 29, 2013 · 1 comment

Comments

@kokujin
Copy link

kokujin commented Jan 29, 2013

I am seeing a very high number of connections in my logs:

" 10:03:38 [initandlisten] connection accepted from 127.0.0.1:40547 #119 (101 connections now open)"

Is this normal? I am creating a connection in my express middleware as follows:

module.exports = function(config) {
var db = mongoskin.db((config.dbName || 'localhost:27017/test'), config.dbOptions);
return function(req, res, next) {
res.locals.appName = config.app.name;
res.db = db;
next();
}
}

The options object being this:
dbOptions: {
'auto_reconnect': true
, 'poolSize' : 1
, w : 1
, safe : true
, strict: false
},

Thanks

@joncostello
Copy link

Did you ever figure this out? I'm seeing a lot of connections in my logs too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants