redis-mpool noReadyCheck and unwatchOnRelease options from config

do not extend them as it disallows to pick from config
This commit is contained in:
Raul Ochoa 2015-07-06 11:52:34 +02:00
parent 19f488095b
commit cd28a4fbcc
6 changed files with 20 additions and 6 deletions

View File

@ -4,6 +4,8 @@
Released 2015-mm-dd Released 2015-mm-dd
Bug fixes:
- redis-mpool `noReadyCheck` and `unwatchOnRelease` options from config and defaulted
## 2.7.0 ## 2.7.0

8
app.js
View File

@ -65,8 +65,12 @@ if ( global.environment.log_filename ) {
global.log4js.configure(log4js_config, { cwd: __dirname }); global.log4js.configure(log4js_config, { cwd: __dirname });
global.logger = global.log4js.getLogger(); global.logger = global.log4js.getLogger();
var redisOpts = _.extend(global.environment.redis, { name: 'windshaft', unwatchOnRelease: false, noReadyCheck: true }), var redisOpts = _.defaults(global.environment.redis, {
redisPool = new RedisPool(redisOpts); name: 'windshaft',
unwatchOnRelease: false,
noReadyCheck: true
});
var redisPool = new RedisPool(redisOpts);
// Include cartodb_windshaft only _after_ the "global" variable is set // Include cartodb_windshaft only _after_ the "global" variable is set
// See https://github.com/Vizzuality/Windshaft-cartodb/issues/28 // See https://github.com/Vizzuality/Windshaft-cartodb/issues/28

View File

@ -176,7 +176,9 @@ var config = {
}, },
emitter: { emitter: {
statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd
} },
unwatchOnRelease: false, // Send unwatch on release, see http://github.com/CartoDB/Windshaft-cartodb/issues/161
noReadyCheck: true // Check `no_ready_check` at https://github.com/mranney/node_redis/tree/v0.12.1#overloading
} }
,varnish: { ,varnish: {
host: 'localhost', host: 'localhost',

View File

@ -170,7 +170,9 @@ var config = {
}, },
emitter: { emitter: {
statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd
} },
unwatchOnRelease: false, // Send unwatch on release, see http://github.com/CartoDB/Windshaft-cartodb/issues/161
noReadyCheck: true // Check `no_ready_check` at https://github.com/mranney/node_redis/tree/v0.12.1#overloading
} }
,varnish: { ,varnish: {
host: 'localhost', host: 'localhost',

View File

@ -170,7 +170,9 @@ var config = {
}, },
emitter: { emitter: {
statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd
} },
unwatchOnRelease: false, // Send unwatch on release, see http://github.com/CartoDB/Windshaft-cartodb/issues/161
noReadyCheck: true // Check `no_ready_check` at https://github.com/mranney/node_redis/tree/v0.12.1#overloading
} }
,varnish: { ,varnish: {
host: 'localhost', host: 'localhost',

View File

@ -172,7 +172,9 @@ var config = {
}, },
emitter: { emitter: {
statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd statusInterval: 5000 // time, in ms, between each status report is emitted from the pool, status is sent to statsd
} },
unwatchOnRelease: false, // Send unwatch on release, see http://github.com/CartoDB/Windshaft-cartodb/issues/161
noReadyCheck: true // Check `no_ready_check` at https://github.com/mranney/node_redis/tree/v0.12.1#overloading
} }
,varnish: { ,varnish: {
host: '', host: '',