Description
Built on top of democracy.js, judiciary.js creates a fully distributed auto-healing system to DigitalOcean setups. Simply define groups by tags and provide configs for creation of those servers. Using UDP unicast, health checks will determine when a server in the group has gone down and it will be destroyed and replaced using the given config. No need for single points of failure or additional servers to manage as judiciary.js runs on each server in the pool as a standalone Node.js service.
Installation
- Install with npm:
npm install judiciary
- Install with Yarn:
yarn add judiciary
Examples
TODO
API
Constructor
new Judiciary({
key: 'API KEY',
tag: 'judiciary',
timeout: 60000,
interval: 10000,
port: 12345,
});
Methods
init()
Sets up the "judiciary branch" by discovering all of the DigitalOcean servers with the matching tag. Everything else must happen inside of the returned promise.
TODO
License
Copyright (c) 2018 James Simpson and GoldFire Studios, Inc.
Released under the MIT License.