httpha

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

Usage no npm install needed!

<script type="module">
  import httpha from 'https://cdn.skypack.dev/httpha';
</script>

README

Build Status Coverage Status

About

httpha

Usage


var httpha = require('httpha');

var ha = httpha.create({
  'interval' : 1000,
}, httpha.httpStatusChecker('/status', 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});

ha.fetch();

License

MIT