testnodeagent

1.0.17 • Public • Published

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.

This package includes the Node Application Metrics monitoring and profiling agent, which is automatically downloaded as the module is installed on your system/device. The Node Application Metrics monitoring and profiling agent is released under a proprietary IBM licence. The license agreement for Node Application Metrics monitoring and profiling agent is available in the following location: node_modules/appmetrics/licenses. Your use of the components of the package and dependencies constitutes your acceptance of this license agreement. If you do not accept the terms of the license agreement(s), delete the relevant component(s) immediately from your device.

Getting Started

Installation

  • Update the package.json file and create a dependency entry for bluemix-autoscaling-agent such as "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) {
 console.log("Hello!");

 }).listen(process.env.PORT || 3000);
console.log('App is listening on port 3000');

Version

1.0.2

Release History

1.0.2 - Server side controlled report and configuration.
1.0.1 - Document update.
1.0.0 - First release.

Package Sidebar

Install

npm i testnodeagent

Weekly Downloads

17

Version

1.0.17

License

none

Last publish

Collaborators

  • jikongcdl