Require Windshaft 0.8.4 to add dump of cache stats on SIGUSR1

This commit is contained in:
Sandro Santilli 2013-01-30 11:29:44 +01:00
parent 2510a47262
commit e408d04fc5
4 changed files with 9 additions and 2 deletions

4
app.js
View File

@ -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();
});

View File

@ -57,3 +57,6 @@ cluster.listen(function(cb) {
console.log("Windshaft tileserver started on port " + global.environment.port);
});
process.on('SIGUSR1', function() {
ws.dumpCacheStats();
});

2
npm-shrinkwrap.json generated
View File

@ -254,7 +254,7 @@
}
},
"windshaft": {
"version": "0.8.3",
"version": "0.8.4",
"dependencies": {
"express": {
"version": "2.5.11",

View File

@ -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",