bluemix-autoscaling-agent v1.0.14
Bluemix Auto-Scaling provides dynamic scale in/out capability for all Bluemix runtimes. To support the scaling for node.js runtime, you need to inject an "Node.js Auto-Scaling Agent for Bluemix"("bluemix-autoscaling-agent") module into target applications. The new module works as Bluemix Auto-Scaling agent ("client") , and must cooperate with the Bluemix auto-scaling service ("server") to complete the scaling capabilities. The "server" side is not an open source project, and only running on IBM Bluemix platform.
See https://new-console.ng.bluemix.net/docs/services/Auto-Scaling/index.html for more details.
Getting Started
Installation
Install the bluemix-autoscaling-agent using npm install --save bluemix-autoscaling-agent.
Before pushing your Node.js application, update your main file to add the agent declaration
var as_agent = require('bluemix-autoscaling-agent');The following code snippet shows a complete entry js file with the auto-scaling agent declaration.
var agent = require('bluemix-autoscaling-agent');
var http = require('http');
var server = http.createServer(function handler(req, res) {
res.end('Hello!');
}).listen(process.env.PORT || 3000);
console.log('App is listening on port 3000');Version
1.0.14
Release History
1.0.14- Add custom ca certificates.1.0.13- Improve log by adding log level.1.0.12- Upgrade to the latest appmetrics.1.0.11- Improve error message.1.0.10- Add license. Apache-2.0.1.0.9- Upgrade to appmetrics v3.0.2.1.0.8- Remove deprecated license declaration.1.0.7- Self-signed https certificate support;Use appmetrics v1.1.2 for v2.0.0 does not work.1.0.6- Update the document.1.0.5- Refactor the code.1.0.4- Fix a json parse error.1.0.3- Update to appmetrics v 1.0.13.1.0.2- Server-side controlled report and configuration.1.0.1- Document update.1.0.0- First release.