diff --git a/analytics/models/db.js b/analytics/models/db.js index d7207dac70..6b2cbf9109 100644 --- a/analytics/models/db.js +++ b/analytics/models/db.js @@ -6,8 +6,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { db: 'spectrum', - max: 100, // Maximum number of connections, default is 1000 - buffer: 10, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute }; diff --git a/athena/models/db.js b/athena/models/db.js index 950125d657..271e97a5a8 100644 --- a/athena/models/db.js +++ b/athena/models/db.js @@ -5,8 +5,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { db: 'spectrum', - max: 100, // Maximum number of connections, default is 1000 - buffer: 10, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute }; diff --git a/chronos/models/db.js b/chronos/models/db.js index 950125d657..271e97a5a8 100644 --- a/chronos/models/db.js +++ b/chronos/models/db.js @@ -5,8 +5,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { db: 'spectrum', - max: 100, // Maximum number of connections, default is 1000 - buffer: 10, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute }; diff --git a/hermes/models/db.js b/hermes/models/db.js index 307af04f63..00d0ab5514 100644 --- a/hermes/models/db.js +++ b/hermes/models/db.js @@ -3,8 +3,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { db: 'spectrum', - max: 100, // Maximum number of connections, default is 1000 - buffer: 10, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute }; diff --git a/mercury/models/db.js b/mercury/models/db.js index f1b7fc93b0..812b1e58cf 100644 --- a/mercury/models/db.js +++ b/mercury/models/db.js @@ -7,8 +7,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { db: 'spectrum', - max: 100, // Maximum number of connections, default is 1000 - buffer: 10, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute }; diff --git a/package.json b/package.json index 4e86b59cd8..ca245317b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Spectrum", - "version": "2.4.71", + "version": "2.4.72", "license": "BSD-3-Clause", "devDependencies": { "@babel/preset-flow": "^7.0.0", diff --git a/shared/db/db.js b/shared/db/db.js index 1fcedf598e..1090e8646d 100644 --- a/shared/db/db.js +++ b/shared/db/db.js @@ -7,8 +7,8 @@ const IS_PROD = !process.env.FORCE_DEV && process.env.NODE_ENV === 'production'; const DEFAULT_CONFIG = { // Connect to the test database when, well, testing db: !process.env.TEST_DB ? 'spectrum' : 'testing', - max: 500, // Maximum number of connections, default is 1000 - buffer: 5, // Minimum number of connections open at any given moment, default is 50 + max: 20, // Maximum number of connections, default is 1000 + buffer: 1, // Minimum number of connections open at any given moment, default is 50 timeoutGb: 60 * 1000, // How long should an unused connection stick around, default is an hour, this is a minute };