Documentation

Clustering & High Availability

Clustering & High Availability

Production JetGraph runs as an active-active cluster. Every machine holds a full copy of the working graph. Clients talk only to a stateless gateway. Writes are stored in a replicated log and applied in the same order on every engine. Reads are served by any healthy engine that has caught up.

The Quick Start compose file is a single engine for local development. High availability uses the same client ports on two or three hosts.

What runs on each machine

🚪

Gateway

Public entry for gRPC, HTTP/Cypher, Bolt, and MCP. Any gateway accepts reads and writes. Clients keep one address and do not connect to an engine directly.

🧾

Replicated write log

A durable, ordered log shared by the cluster. A write is acknowledged after it is stored on more than one machine, then every engine applies it.

🧠

Graph engine

The full in-memory graph on that host. Engines apply the same log, serve reads, and keep their own snapshots so a restart can catch up quickly.

🖥️

Admin UI

Optional. Run it on one host and point it at the local gateway. Schema, Cypher, and the graph explorer use the same cluster as your applications.

Clients, agents, Admin UI │ gRPC :50051 · HTTP :8080 · Bolt :7687 ▼ Gateway on each machine │ ├── replicated write log (every machine) └── graph engine (full copy on every machine)

How it is deployed

Run Docker Compose on each Linux host. The hosts are peers: the same three services, wired to each other. Two hosts are the usual production start. Three hosts keep accepting writes while one host is down.

yaml — one host (shape only)
services: gateway: # public 50051, 8080, 7687 engine: # full in-memory graph for this host write-log: # member of the replicated log ui: # optional, usually one host

Images are published as ghcr.io/fraudmanagement/graphengine (gateway and engine) and ghcr.io/fraudmanagement/jetui (Admin UI). Open the client ports between your applications and every gateway. The machines also need to reach each other for the write log and for engine-to-engine recovery. A production install guide with host sizing and firewall rules is provided with the deployment package.

Writes and reads

When a machine stops

  1. 1

    Reads continue

    Remaining engines keep serving. Applications stay on the gateway address. There is no promotion step.

  2. 2

    Writes follow the log

    With three machines, new writes continue while one machine is down. With two machines, new writes wait until both copies of the log are available again. Reads on the surviving machine continue either way.

  3. 3

    The machine rejoins

    Start the same compose stack. The engine catches up from the log and the gateway starts using it again. No client reconfiguration.

What to size for

ℹ️
Check cluster health on a gateway with GET /health. ready is true when the write log is reachable and at least one engine can serve reads.