From e408d04fc55c657cde0df1b88000998a06e13843 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 30 Jan 2013 11:29:44 +0100 Subject: [PATCH] Require Windshaft 0.8.4 to add dump of cache stats on SIGUSR1 --- app.js | 4 ++++ cluster.js | 3 +++ npm-shrinkwrap.json | 2 +- package.json | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index aee614d2..225f8e64 100755 --- a/app.js +++ b/app.js @@ -45,3 +45,7 @@ ws.listen(global.environment.port, global.environment.host); ws.on('listening', function() { console.log("Windshaft tileserver started on " + global.environment.host + ':' + global.environment.port); }); + +process.on('SIGUSR1', function() { + ws.dumpCacheStats(); +}); diff --git a/cluster.js b/cluster.js index 74f7361a..24866a06 100755 --- a/cluster.js +++ b/cluster.js @@ -57,3 +57,6 @@ cluster.listen(function(cb) { console.log("Windshaft tileserver started on port " + global.environment.port); }); +process.on('SIGUSR1', function() { + ws.dumpCacheStats(); +}); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 9a832d3c..733a29dc 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -254,7 +254,7 @@ } }, "windshaft": { - "version": "0.8.3", + "version": "0.8.4", "dependencies": { "express": { "version": "2.5.11", diff --git a/package.json b/package.json index 7eadf430..8b5c2b85 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "node-varnish": "0.1.1", "underscore" : "~1.3.3", "grainstore" : "~0.10.10", - "windshaft" : "~0.8.3", + "windshaft" : "~0.8.4", "step": "0.0.x", "generic-pool": "1.0.x", "redis": "0.7.2",