Run a local cluster
Start a three-node Nova cluster on one machine with Docker Compose, with storage, a Gateway and dashboards.
Docker Compose starts a whole Nova cluster on one machine: three nodes, the metadata store, object storage, a Gateway, an object cache, Prometheus and Grafana. Use it to try the API, drive load, and watch the dashboards.
The stack keeps one copy of everything and has no authentication. It is for development and demos. To run Nova for real, see Run Nova on machines, Run Nova with Docker or Install Nova on Kubernetes.
Before you start
-
Install Docker with Compose v2.
-
Get a checkout of the Nova repository. The stack builds the
novadimage from it, so the host needs no Go to start the stack. -
Build the
novacommand line from the checkout with Go 1.27, into Go'sbindirectory, which must be on yourPATH. The image does not contain it.go build -o "$(go env GOPATH)/bin/nova" ./cmd/novactl -
Check that the host ports in Addresses and ports are free, or move them.
Start the stack
Start the containers
From the checkout:
docker compose -f deploy/docker/docker-compose.yml up -d --buildThe first run builds the image and pulls the others. Later runs reuse the build cache; one took about a minute and a half. When the command returns, list the services:
docker compose -f deploy/docker/docker-compose.yml ps -a --format 'table {{.Service}}\t{{.Status}}'SERVICE STATUS
cache-metrics-pump Up 6 seconds
grafana Up 6 seconds
novad-1 Up 9 seconds (healthy)
novad-2 Up 9 seconds (healthy)
novad-3 Up 9 seconds (healthy)
novagateway Up 7 seconds (health: starting)
objectcache-0 Up 18 seconds
objectcache-1 Up 18 seconds
oxia Up 26 seconds (healthy)
oxia-registry Up 26 seconds (healthy)
prometheus Up 7 seconds
rustfs Up 26 seconds (healthy)
rustfs-init Exited (0) 10 seconds agorustfs-init creates the buckets and exits. novagateway turns unhealthy after about 100 seconds (20 failed checks, 5 seconds apart), even though it serves; see If it goes wrong.
Check the cluster
export NOVA_ADDR=localhost:7781
nova healthSERVING node=01a204d9-04ac-7163-a94c-2f00e0bdc2cd zone=az-1 version=dev leading=0nova fleet lists the three nodes. Each one advertises host.docker.internal and its published port, so a client on your machine can follow a redirect to the node that leads a stream.
Write and read a record
nova bucket create demo
nova stream create --bucket demo --key events
printf 'hello\nworld\n' | nova append nova://demo/events
nova read nova://demo/events --from 0appended 2 entries
0 2026-11-22T21:01:14+01:00 hello
1 2026-11-22T21:01:14+01:00 worldbucket create and stream create also print the settings they stored, left out here.
What runs
| Service | What it does |
|---|---|
oxia | The metadata store's streams, queues, sessions and dispatch keyspaces, in one oxia 0.17.1 instance. It has no volume, so its data lives inside the container. |
oxia-registry | The registry keyspace: buckets, stream addresses and credentials. It runs in a second instance because it needs keys in natural order, and one standalone oxia instance sorts all its keyspaces the same way. |
rustfs, rustfs-init | Object storage. rustfs-init creates the bucket nova and three buckets that stand in for Express buckets, nova-exp-az1 to nova-exp-az3, then exits. |
objectcache-0, objectcache-1 | The object cache: two read-through instances in front of RustFS, each with its own disk |
novad-1, novad-2, novad-3 | The nodes, one per zone (az-1 to az-3). Each has a small volume that holds only its identity. |
novagateway | The cluster's HTTP endpoint, with no TLS, no token checks and no limits |
novad-audit | An audit-only node, started only with the audit-split profile |
prometheus, grafana, cache-metrics-pump | Metrics. Prometheus scrapes the nodes, the Gateway and oxia every 5 seconds. Grafana shows the dashboards from the repository's dashboards/ folder. |
This is the external shape of the metadata store, with one copy of each keyspace; see Metadata store. Every node also runs Express, with the three RustFS buckets standing in for one express bucket per zone. The buckets test the quorum writes, but they do not have the latency of express storage; see Object storage.
The nodes run as the non-root user nova (uid 10001), with every Linux capability dropped. Each gets 75 seconds to stop: up to 30 seconds to hand its streams to the other nodes, 25 seconds to close, and a margin. With Docker's default of 10 seconds, a node would be killed while it closes. The nodes log in JSON, and their auditors wait 2 minutes before they delete an unused object, where a default node waits 10.
Addresses and ports
| What | Address | Notes |
|---|---|---|
| Grafana | http://localhost:3001 | No login. Ten dashboards in the nova folder |
| Prometheus | http://localhost:9091 | Status › Targets lists every node, the Gateway and oxia. The novad-audit target stays down unless you run the audit-split profile. |
| RustFS console | http://localhost:9201/rustfs/console/ | User nova, password novatest |
| Nodes, gRPC | localhost:7781, 7782, 7783 | One port per node; the CLI and the Go SDK use these |
| Nodes, HTTP | localhost:7791, 7792, 7793 | The data bridge |
| Nodes, metrics | localhost:9191, 9192, 9193 | /metrics, /healthz, /readyz and /debug/pprof/. The audit node is on 9194. |
| Admin dashboard | http://localhost:9191/admin/ | Read-only. Any node shows the whole cluster. |
| Gateway | http://localhost:8080/v1/... | Its metrics are on localhost:9390 |
| Object cache | localhost:3281, 3282 | The two cache instances |
The nodes reach each other on their fleet listener, port 7790, inside the Compose network. It is not published, so the host cannot reach it. Histograms stay empty until you send traffic; to drive load, see Benchmarking.
Move the ports
If another stack holds these ports, add a Compose file that moves them, and tell each node to advertise its new port. !override needs Compose 2.24.4 or later. The excerpt shows novad-1 and the Gateway; move novad-2 and novad-3 the same way, to the ports their advertise variables name.
services:
novad-1:
ports: !override
- "8463:7780"
- "8464:7788"
- "8465:9090"
novagateway:
ports: !override
- "8474:8080"
- "8475:9090"NOVA_ADVERTISE_1=host.docker.internal:8463 \
NOVA_ADVERTISE_2=host.docker.internal:8466 \
NOVA_ADVERTISE_3=host.docker.internal:8469 \
docker compose -f deploy/docker/docker-compose.yml -f ports.yml up -d --buildThe commands on this page then use the new ports: NOVA_ADDR=localhost:8463, and the moved ports in every curl.
Use the HTTP API
Each node also serves the data plane over HTTP, the data bridge, for trusted callers that cannot use gRPC. It has the same limits and the same authentication mode as gRPC. A node relays a call for a stream that another node leads, so any node answers for any stream.
A stream key goes in the URL as one path segment, so orders/eu becomes orders%2Feu. Quote a URL that has ? or & in it, so the shell passes them on.
curl -X POST localhost:7791/v1/streams/demo/orders%2Feu -d '{"class":"standard"}'{
"stream_id": "01a204d9-4b81-79da-af21-bc7f85f230d2",
"bucket": "demo",
"key": "orders/eu",
"kind": "plain",
"class": "standard",
"producer_policy": "any",
"timestamping_mode": "client-prefer"
}curl -X POST localhost:7791/v1/streams/demo/orders%2Feu/records \
-d '{"records":[{"body":"one"},{"body":"two"}]}'{
"start": {
"seq_num": 0,
"timestamp_ms": 1795377679463
},
"end": {
"seq_num": 2,
"timestamp_ms": 1795377679463
},
"tail": {
"seq_num": 2,
"timestamp_ms": 1795377679463
}
}curl 'localhost:7791/v1/streams/demo/orders%2Feu/records?seq_num=0'{
"records": [
{
"seq_num": 0,
"timestamp_ms": 1795377679463,
"body": "one"
},
{
"seq_num": 1,
"timestamp_ms": 1795377679463,
"body": "two"
}
],
"bookmark": "2",
"tail": {
"seq_num": 2,
"timestamp_ms": 1795377679463
}
}To follow the stream live, subscribe with server-sent events. Here a second node answers:
curl -N 'localhost:7792/v1/streams/demo/orders%2Feu/records/subscribe?seq_num=0'id: 2
data: {"records":[{"seq_num":0,"timestamp_ms":1795377679463,"body":"one"},{"seq_num":1,"timestamp_ms":1795377679463,"body":"two"}],"bookmark":"2","tail":{"seq_num":2,"timestamp_ms":1795377679463}}A proxy in front of the bridge must pass %2F through unchanged and allow an idle connection longer than the 15-second heartbeat.
The Gateway at localhost:8080 serves the same API for the whole cluster. The first call creates a bucket whose streams are created by their first append:
curl -X POST localhost:8080/v1/buckets/apps -d '{"create_stream_on_append":true}'
curl -X POST localhost:8080/v1/streams/apps/orders%2Feu/records -d '{"records":[{"body":"hi"}]}'
curl 'localhost:8080/v1/streams/apps/orders%2Feu/records?seq_num=0&limit=10'{
"records": [
{
"seq_num": 0,
"timestamp_ms": 1795377680849,
"body": "hi"
}
],
"bookmark": "1",
"tail": {
"seq_num": 1,
"timestamp_ms": 1795377680849
}
}See Using the API for every route.
Check the object cache
The nodes and the Gateway list the same two cache instances, so a read of one object goes to the same instance from both. If an instance fails, they read RustFS directly. To see the cache serve a read with RustFS stopped:
-
Write at least 8 MiB to one stream. Then wait about 6 minutes, while the auditor copies the records into a stream object of their own. It does that 5 minutes after a stream's records in transit pass 8 MiB.
nova stream create --bucket demo --key big python3 -c "import sys; [sys.stdout.write(f'{i:08d}' + 'x' * 1000 + '\n') for i in range(12000)]" \ | nova append nova://demo/bigappended 12000 entries -
Read it once through the Gateway. The Gateway reads from object storage only for a read that sets
limitand starts at a sequence number or a time.curl -s 'localhost:8080/v1/streams/demo/big/records?seq_num=0&limit=2' > /dev/null -
Stop RustFS and read again. The read still answers
200, served from the cache.nova_gateway_vended_bytes_totalcounts the bytes the Gateway read from storage through the cache, andnova_gateway_proxied_bytes_totalthe bytes it relayed through a node. Scrape them before and after the read to see the first one grow:docker compose -f deploy/docker/docker-compose.yml stop rustfs curl -s -o /dev/null -w '%{http_code}\n' 'localhost:8080/v1/streams/demo/big/records?seq_num=0&limit=2' curl -s localhost:9390/metrics | grep -E '^nova_gateway_(vended|proxied)_bytes_total'200 nova_gateway_proxied_bytes_total{…,verb="read"} 1.713602e+06 nova_gateway_vended_bytes_total{…,verb="read"} 106848 -
Start RustFS again with
docker compose -f deploy/docker/docker-compose.yml start rustfs.
If the read in step 3 fails, the auditor had not yet copied the records into a stream object, so the Gateway relayed the read through a node, which needs RustFS. Start RustFS, wait a few minutes more, and repeat steps 2 and 3.
nova_objectcache_requests_total and nova_objectcache_fallbacks_total on a node or the Gateway show the cache's use and its direct reads. See Add the object cache.
Run a separate auditor
Each node runs the auditor, the background process that rewrites stored records and reclaims storage. To move that work off the serving nodes:
NOVA_AUDIT=off docker compose --profile audit-split -f deploy/docker/docker-compose.yml up -d --build
docker compose --profile audit-split -f deploy/docker/docker-compose.yml \
ps --format 'table {{.Service}}\t{{.Status}}' novad-1 novad-2 novad-3 novad-auditSERVICE STATUS
novad-1 Up 4 minutes (healthy)
novad-2 Up 4 minutes (healthy)
novad-3 Up 4 minutes (healthy)
novad-audit Up 4 minutes (healthy)NOVA_AUDIT=off starts the three nodes with --audit=off. The profile adds novad-audit, a node started with --audit=only that serves no clients and does every auditor job. It keeps a 4 GiB fetch cache on its volume, because an audit-only node refuses to start without one. Its metrics are on localhost:9194. Run the profile without NOVA_AUDIT=off to have the nodes and novad-audit share the auditor's 64 shards of work. See The auditor.
Stop and delete the data
| Command | What it keeps | Use when |
|---|---|---|
docker compose -f deploy/docker/docker-compose.yml stop | Everything | You want the stack back later as it was; start brings it back |
docker compose -f deploy/docker/docker-compose.yml down -v | Nothing: it deletes the containers, the network and the volumes | You are done, or you change to a build that cannot read the stored data |
Delete the metadata and the objects together, which is what down -v does. Metadata that points at missing objects cannot be read, and objects that no metadata points at are never reclaimed.
Plain down deletes the metadata and keeps the objects
docker compose down without -v removes the oxia containers, and the metadata inside them, but keeps the RustFS and node volumes. The next up starts an empty metadata store over the old objects. nova ls then prints No buckets found., the old objects are never reclaimed, and a node logs wal: epoch halted; rolling with reason foreign_occupant when it first writes.
If it goes wrong
| Symptom | Likely cause | What to do |
|---|---|---|
Bind for 0.0.0.0:7781 failed: port is already allocated | Another stack or process holds a host port | Stop it, or move the ports |
docker compose ps shows novagateway as unhealthy, and up --wait fails with container … is unhealthy | The Gateway shares the nodes' health check, which asks port 9090 for /readyz. The Gateway answers only /healthz, on port 8080. | The Gateway still serves. Check it with curl localhost:8080/healthz, and leave out --wait. |
Each node logs novad: the auditor has no fetch cache at start | The nodes' auditors run without scratch disk | Nothing, for light use. Above a few MiB/s, denorm falls behind; run a separate auditor, which has one. |
A client fails on the name host.docker.internal | Your machine cannot resolve the name the nodes advertise | Add 127.0.0.1 host.docker.internal to /etc/hosts |
oxia exits with SIGBUS: bus error under write load, and then every metadata call times out | The Docker VM's disk is full. oxia maps its log into memory, and a write to a page the disk cannot hold arrives as SIGBUS. | Check the VM's disk with docker run --rm alpine df -h /. Free space with docker builder prune -f, or with down -v. A two-minute run at about 30 MiB/s writes about 3.5 GiB, and RustFS holds more until the auditor cleans up. |
A container fails with endpoint with name … already exists in network nova_default | A container stopped uncleanly and left its network endpoint | docker network disconnect -f nova_default <container>, then up -d again |
| Appends stall with no errors | Backpressure: the write backlog is full because indexing or object storage stalled | The goroutine dump names the waiting stage: curl -s 'localhost:9191/debug/pprof/goroutine?debug=1'. A CPU profile shows where time goes: go tool pprof 'localhost:9191/debug/pprof/profile?seconds=10'. |