Send memory usage stats

remotes/origin/overviews-widgets
Raul Ochoa 9 years ago
parent decd9077e4
commit 2e063cc2d2

@ -1,9 +1,12 @@
# Changelog
## 2.8.1
## 2.9.0
Released 2015-mm-dd
New features:
- Send memory usage stats
## 2.8.0

@ -86,6 +86,13 @@ if (global.statsClient) {
global.statsClient.gauge(keyPrefix + 'unused', status.unused);
global.statsClient.gauge(keyPrefix + 'waiting', status.waiting);
});
setInterval(function() {
var memoryUsage = process.memoryUsage();
Object.keys(memoryUsage).forEach(function(k) {
global.statsClient.gauge('windshaft.memory.' + k, memoryUsage[k]);
});
}, 5000);
}
// Maximum number of connections for one process

@ -1,6 +1,6 @@
{
"name": "windshaft-cartodb",
"version": "2.8.1",
"version": "2.9.0",
"dependencies": {
"cartodb-psql": {
"version": "0.4.0",

@ -1,7 +1,7 @@
{
"private": true,
"name": "windshaft-cartodb",
"version": "2.8.1",
"version": "2.9.0",
"description": "A map tile server for CartoDB",
"keywords": [
"cartodb"

Loading…
Cancel
Save