From 713e394e7bc13aa983e7317a7cbad53c494f6dea Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 13 Aug 2014 15:15:30 +0200 Subject: [PATCH] Slow pool configuration in example configurations --- NEWS.md | 1 + config/environments/development.js.example | 6 +++++- config/environments/production.js.example | 6 +++++- config/environments/staging.js.example | 6 +++++- config/environments/test.js.example | 6 +++++- 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 83d47dac..e86f9193 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ Enhancements: - cartodb-redis - windshaft - Specifies name in the redis pool + - Slow pool configuration in example configurations 1.14.0 -- 2014-08-07 -------------------- diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 5a432914..59c9f6aa 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -103,7 +103,11 @@ var config = { // kept open by the server. The default is 50. max: 50, idleTimeoutMillis: 1, // idle time before dropping connection - reapIntervalMillis: 1 // time between cleanups + reapIntervalMillis: 1, // time between cleanups + slowPool: { + log: true, // whether a slow acquire must be logged or not + elapsedThreshold: 25 // the threshold to determine an slow acquire must be reported or not + } } ,sqlapi: { protocol: 'http', diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 08532ac1..851671da 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -97,7 +97,11 @@ var config = { // kept open by the server. The default is 50. max: 50, idleTimeoutMillis: 30000, // idle time before dropping connection - reapIntervalMillis: 1000 // time between cleanups + reapIntervalMillis: 1000, // time between cleanups + slowPool: { + log: true, // whether a slow acquire must be logged or not + elapsedThreshold: 25 // the threshold to determine an slow acquire must be reported or not + } } ,sqlapi: { protocol: 'https', diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index b30bca97..1084f1e6 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -97,7 +97,11 @@ var config = { // kept open by the server. The default is 50. max: 50, idleTimeoutMillis: 30000, // idle time before dropping connection - reapIntervalMillis: 1000 // time between cleanups + reapIntervalMillis: 1000, // time between cleanups + slowPool: { + log: true, // whether a slow acquire must be logged or not + elapsedThreshold: 25 // the threshold to determine an slow acquire must be reported or not + } } ,sqlapi: { protocol: 'https', diff --git a/config/environments/test.js.example b/config/environments/test.js.example index e313cf19..2937f285 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -97,7 +97,11 @@ var config = { // kept open by the server. The default is 50. max: 50, idleTimeoutMillis: 1, // idle time before dropping connection - reapIntervalMillis: 1 // time between cleanups + reapIntervalMillis: 1, // time between cleanups + slowPool: { + log: true, // whether a slow acquire must be logged or not + elapsedThreshold: 25 // the threshold to determine an slow acquire must be reported or not + } } ,sqlapi: { protocol: 'http',