Skip to content

aleafs/httpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f818c7d · Sep 24, 2014

History

14 Commits
Dec 16, 2013
Dec 4, 2013
Dec 4, 2013
Sep 24, 2014
Sep 24, 2014
Dec 4, 2013
Dec 3, 2013
Sep 24, 2014

Repository files navigation

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

About

a simple client-side load balance and HA module.

Resources

Stars

Watchers

Forks

Packages

No packages published