Skip to content

Triton trusted Consul v0.2

Choose a tag to compare

@misterbisson misterbisson released this 21 Dec 21:45
· 74 commits to master since this release

Changelog

  • Simplified the bootstrapping of Consul by using Containerbuddy health checks to join a cluster that's been primed with -bootstrap-expect (by @tgross in #3).

How it works

This demo first starts up a bootstrap node that starts the raft but expects 2 additional nodes before the raft is healthy. Once this node is up and its IP address is obtained, the rest of the nodes are started and joined to the bootstrap IP address (the value is passed in the BOOTSTRAP_HOST environment variable).

If a raft instance fails, the data is preserved among the other instances and the overall availability of the service is preserved because any single instance can authoritatively answer for all instances. Applications that depend on the Consul service should re-try failed requests until they get a response.

Any new raft instances need to be started with a bootstrap IP address, but after the initial cluster is created, the BOOTSTRAP_HOST IP address can be any host currently in the raft. This means there is no dependency on the first node after the cluster has been formed.

Usage

Please consult the README.md for instructions on how to use this release.