From 03e9dd33320bbc3081610471503943218a3592c0 Mon Sep 17 00:00:00 2001 From: Martii Date: Tue, 18 Dec 2018 19:34:39 -0700 Subject: [PATCH] Go back to the original multiplier * This value is per thread otherwise it would be huge in each thread. Durr. Applies to #1548 --- app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app.js b/app.js index ead1b6234..9d04ca2cf 100755 --- a/app.js +++ b/app.js @@ -18,8 +18,6 @@ var privkey = require('./libs/debug').privkey; var fullchain = require('./libs/debug').fullchain; var chain = require('./libs/debug').chain; -var os = require('os'); - // var path = require('path'); var crypto = require('crypto'); @@ -72,7 +70,7 @@ var defaultPoolSize = 5; if (isPro) { dbOptions = { secondaryAcceptableLatencyMS: 15, - poolSize: (isPro ? defaultPoolSize * os.cpus().length : defaultPoolSize) + poolSize: defaultPoolSize * 2 } } else { dbOptions = {