Upgrades Windshaft to start reporting redis/renderers/mapnik pool metrics

This commit is contained in:
Raul Ochoa 2014-10-15 16:45:49 +02:00
parent e52f583e20
commit cf5e34eae6
8 changed files with 22 additions and 15 deletions

View File

@ -1,8 +1,9 @@
1.19.1 -- 2014-mm-dd 1.20.0 -- 2014-mm-dd
-------------------- --------------------
New features: New features:
- Report to statsd the status of redis pools - Report to statsd the status of redis pools
- Upgrades Windshaft to start reporting redis/renderers/mapnik pool metrics
Enhancements: Enhancements:
- Share one redis-mpool across the application - Share one redis-mpool across the application

View File

@ -86,7 +86,8 @@ var config = {
// Milliseconds since last access before renderer cache item expires // Milliseconds since last access before renderer cache item expires
cache_ttl: 60000, cache_ttl: 60000,
metatile: 4, metatile: 4,
bufferSize: 64 bufferSize: 64,
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
} }
,millstone: { ,millstone: {
// Needs to be writable by server user // Needs to be writable by server user

View File

@ -80,7 +80,8 @@ var config = {
// Milliseconds since last access before renderer cache item expires // Milliseconds since last access before renderer cache item expires
cache_ttl: 60000, cache_ttl: 60000,
metatile: 4, metatile: 4,
bufferSize: 64 bufferSize: 64,
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
} }
,millstone: { ,millstone: {
// Needs to be writable by server user // Needs to be writable by server user

View File

@ -80,7 +80,8 @@ var config = {
// Milliseconds since last access before renderer cache item expires // Milliseconds since last access before renderer cache item expires
cache_ttl: 60000, cache_ttl: 60000,
metatile: 4, metatile: 4,
bufferSize: 64 bufferSize: 64,
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
} }
,millstone: { ,millstone: {
// Needs to be writable by server user // Needs to be writable by server user

View File

@ -80,7 +80,8 @@ var config = {
// Milliseconds since last access before renderer cache item expires // Milliseconds since last access before renderer cache item expires
cache_ttl: 60000, cache_ttl: 60000,
metatile: 4, metatile: 4,
bufferSize: 64 bufferSize: 64,
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
} }
,millstone: { ,millstone: {
// Needs to be writable by server user // Needs to be writable by server user

View File

@ -24,7 +24,8 @@ module.exports = function(redisPool) {
var rendererConfig = _.defaults(global.environment.renderer || {}, { var rendererConfig = _.defaults(global.environment.renderer || {}, {
cache_ttl: 60000, // milliseconds cache_ttl: 60000, // milliseconds
metatile: 4, metatile: 4,
bufferSize: 64 bufferSize: 64,
statsInterval: 60000
}); });
var me = { var me = {
@ -60,7 +61,8 @@ module.exports = function(redisPool) {
}, },
statsd: global.environment.statsd, statsd: global.environment.statsd,
renderCache: { renderCache: {
ttl: rendererConfig.cache_ttl ttl: rendererConfig.cache_ttl,
statsInterval: rendererConfig.statsInterval
}, },
redis: global.environment.redis, redis: global.environment.redis,
enable_cors: global.environment.enable_cors, enable_cors: global.environment.enable_cors,

8
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "windshaft-cartodb", "name": "windshaft-cartodb",
"version": "1.19.1", "version": "1.20.0",
"dependencies": { "dependencies": {
"cartodb-psql": { "cartodb-psql": {
"version": "0.4.0", "version": "0.4.0",
@ -167,9 +167,9 @@
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz" "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz"
}, },
"windshaft": { "windshaft": {
"version": "0.29.0", "version": "0.30.0",
"from": "https://github.com/CartoDB/Windshaft/tarball/0.29.0", "from": "https://github.com/CartoDB/Windshaft/tarball/0.30.0",
"resolved": "https://github.com/CartoDB/Windshaft/tarball/0.29.0", "resolved": "https://github.com/CartoDB/Windshaft/tarball/0.30.0",
"dependencies": { "dependencies": {
"chronograph": { "chronograph": {
"version": "0.1.0", "version": "0.1.0",

View File

@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "windshaft-cartodb", "name": "windshaft-cartodb",
"version": "1.19.1", "version": "1.20.0",
"description": "A map tile server for CartoDB", "description": "A map tile server for CartoDB",
"keywords": [ "keywords": [
"cartodb" "cartodb"
@ -25,7 +25,7 @@
"node-varnish": "https://github.com/Vizzuality/node-varnish/tarball/0.3.0", "node-varnish": "https://github.com/Vizzuality/node-varnish/tarball/0.3.0",
"underscore" : "~1.6.0", "underscore" : "~1.6.0",
"dot": "~1.0.2", "dot": "~1.0.2",
"windshaft": "https://github.com/CartoDB/Windshaft/tarball/0.29.0", "windshaft": "https://github.com/CartoDB/Windshaft/tarball/0.30.0",
"step": "~0.0.5", "step": "~0.0.5",
"request": "~2.9.203", "request": "~2.9.203",
"cartodb-redis": "https://github.com/CartoDB/node-cartodb-redis/tarball/0.11.0", "cartodb-redis": "https://github.com/CartoDB/node-cartodb-redis/tarball/0.11.0",