AlgoViz

HashiCorp Consul

medium 32 min

Consul keeps a live list of services and their health across many machines, answers where a service is over DNS and HTTP, stores small settings and locks, and can decide which service may call which through a service mesh.

Where it shows up

The same pattern appears across everyday software.

  • Roblox

    Its January 2022 report describes more than 18,000 servers and 170,000 containers, with Consul used for discovery, health checks and locking, and explains the 73-hour outage step by step.

  • Nomad

    HashiCorp's scheduler registers the services of a job in Consul, with the health checks written in the job file.

  • Vault

    Vault can keep its data in Consul's key/value store. That storage option supports high availability and is officially supported.

  • Terraform

    The consul backend keeps state in the key/value store and locks it with a session, so that two people cannot apply at once.

  • Prometheus

    Its configuration has a Consul discovery section, so the list of machines to scrape comes from the catalog.

  • Amazon ECS and Kubernetes

    Consul Dataplane runs beside each copy on both platforms, so no agent is needed on every node.