hapi-softonic-load-balancing
v2.0.0
Published
Hapi plugin to provide health checks for a server in the Softonic infrastructure
Downloads
7
Readme
hapi-softonic-load-balancing
Hapi plugin to provide health checks for a server in the Softonic infrastructure.
The health check endpoint is /loadbalancer.html.
Installation
npm install hapi-softonic-load-balancingUsage
// CommonJS
// const HapiSoftonicLoadBalancing = require('hapi-softonic-load-balancing');
// ES6
import Inert from 'inert';
import HapiSoftonicLoadBalancing from 'hapi-softonic-load-balancing';
// Register dependency
await server.register({
plugin: Inert,
});
// Registration
await server.register({
plugin: HapiSoftonicLoadBalancing
});Testing
Clone the repository and execute:
npm testContribute
- Fork it:
git clone https://github.com/softonic/hapi-softonic-load-balancing.git - Create your feature branch:
git checkout -b feature/my-new-feature - Commit your changes:
git commit -am 'Added some feature' - Check the build:
npm run build - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
