Clustering & High Availability
On this page
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.
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.
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
- Writes go to any gateway. The gateway appends them to the replicated log. Every engine applies that log in order, including schema changes, nodes, edges, and fraud cases.
- Reads are sent to a healthy engine that has already applied the relevant writes. If the nearest engine is down or still catching up, the gateway uses another one.
- Same APIs. gRPC on
50051, HTTPPOST /cypherand/mcpon8080, Bolt on7687. Point the Rust client, Bolt drivers, and the Admin UI at a gateway.
When a machine stops
-
1
Reads continue
Remaining engines keep serving. Applications stay on the gateway address. There is no promotion step.
-
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
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
- Every engine holds the full working graph. Give each host the same memory budget. HA adds availability and read capacity. It does not split the graph across machines.
- Use the same memory policy on every engine. Eviction and backpressure are applied from the shared log so the copies stay aligned.
- Keep a system of record. JetGraph is the live graph. Your warehouse or OLTP database remains the durable history.
GET /health. ready is true when the write log is reachable and at least one engine can serve reads.