From f4cb87f493bf5f43100ebd7f248f3142a23d480e Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 14 Oct 2014 22:14:34 +0200 Subject: [PATCH] Adds default values for slow queries in redis --- config/environments/development.js.example | 4 ++++ config/environments/production.js.example | 4 ++++ config/environments/staging.js.example | 4 ++++ config/environments/test.js.example | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index d0ec046b..0abc4637 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -105,6 +105,10 @@ var config = { max: 50, idleTimeoutMillis: 1, // idle time before dropping connection reapIntervalMillis: 1, // time between cleanups + slowQueries: { + log: true, + elapsedThreshold: 200 + }, 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 diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 794f7dfc..76fc3d50 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -99,6 +99,10 @@ var config = { max: 50, idleTimeoutMillis: 30000, // idle time before dropping connection reapIntervalMillis: 1000, // time between cleanups + slowQueries: { + log: true, + elapsedThreshold: 200 + }, 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 diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index c07d17cb..98562d64 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -99,6 +99,10 @@ var config = { max: 50, idleTimeoutMillis: 30000, // idle time before dropping connection reapIntervalMillis: 1000, // time between cleanups + slowQueries: { + log: true, + elapsedThreshold: 200 + }, 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 diff --git a/config/environments/test.js.example b/config/environments/test.js.example index f91e36a4..be080e82 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -99,6 +99,10 @@ var config = { max: 50, idleTimeoutMillis: 1, // idle time before dropping connection reapIntervalMillis: 1, // time between cleanups + slowQueries: { + log: true, + elapsedThreshold: 200 + }, 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