a simple client-side load balance and HA module.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib fix _extend bug Dec 16, 2013
test Add user-agent support Dec 4, 2013
.gitignore Add test case Dec 4, 2013
.travis.yml modify .travis.yml Sep 24, 2014
Makefile remove jshint Sep 24, 2014
README.md Add user-agent support Dec 4, 2013
index.js first commit Dec 3, 2013
package.json remove jshint Sep 24, 2014

README.md

Build Status Coverage Status

About

httpha is a simple client-side load balance and HA module.

Usage

var httpha = require('httpha');

var ha = httpha.create({
  'interval' : 1000,
}, httpha.httpStatusChecker('/status', {
  'timeout' : 1000,
}));

ha.add({'hostname' : '127.0.0.1', 'port' : 8080});
ha.add({'hostname' : '127.0.0.2', 'port' : 8080});
ha.add({'hostname' : '127.0.0.1', 'port' : 8081});

console.log(ha.fetch());
console.log(ha.fetch());

License

MIT