What you run

What you run

The processes and services a Nova deployment needs, what each one keeps, and where to start.

This tab is for whoever installs and runs Nova. A Nova deployment is a set of novad nodes, an S3-compatible bucket that holds every record, and a metadata store that says where each record is. The nodes keep no record data on their own disks, so you can add, replace or lose one without copying data.

novad nodes gRPC HTTPS Clients and SDKs Browsers and outside clients Gatewayoptional external metadata storeoptional object storagestandard bucketexpress buckets object cacheoptional serve streams and queues auditor metadata storewhen embedded

The parts

PartRequiredWhat it doesWhat it keeps
Nodes (novad)YesServe clients, lead streams, and run the background auditorTheir identity, and the metadata store's share when it is embedded
Object storageYesHolds every record: one standard bucket, plus one express bucket per zone for Express streamsEvery record
Metadata storeYesRecords buckets, streams, where each record is, and which node leads each streamNo record bodies
Gateway (novagateway)NoServes the HTTP API to browsers and clients outside your network, with TLS, token checks and limitsNothing
Object cacheNoA shared read cache in front of the standard bucket, one pool per zoneCopies of objects
Audit-only nodesNonovad --audit=only runs the background work and serves no clientsNothing

The metadata store is oxia. It runs inside novad unless you point the nodes at one of its own; Run the metadata store compares the two. The bucket and the metadata store are only useful together: the bucket holds the records, and the metadata says where they are. A bucket without its metadata, or metadata restored over newer objects, loses records.

Deployment sizes

The storage flags decide the size of a deployment, from one process that forgets everything to a cluster that survives a lost machine.

SizeStorage flagsWhere records and metadata liveUse when
In memoryNoneIn the process, lost when it exitsTrying the API, and tests
One process on its disk--local-dataUnder --dir, in data/ and metadata/, with no copiesDevelopment that must survive a restart
Standalone--s3-bucketRecords in the bucket; one copy of the metadata under --dirAn install you can rebuild
Cluster--s3-bucket and --oxia-server-peersRecords in the bucket; three copies of the metadata, on three nodesProduction on a few machines
Cluster, external metadata store--s3-bucket and --oxiaRecords in the bucket; the metadata on oxia's own machinesMany nodes, or metadata backups

The first two sizes are single processes. A node warns at start which one it runs:

[WARN] novad: IN-MEMORY storage; all stream data and metadata are lost on exit; use --local-data or --s3-bucket to persist node_id=01a20519-… storage=memory metadata=memory dir=./.novad dir_used=false
[WARN] novad: LOCAL DISK storage; data survives restarts but is not replicated; losing this directory loses all data node_id=01a20519-… storage=local data_dir=…/.novad/data metadata_dir=…/.novad/metadata

Neither can join a cluster: --oxia and --oxia-server-peers need --s3-bucket. --local-data also refuses Express buckets, while an in-memory node simulates them with --s3-express-buckets. Every flag and its default is in the novad reference.

Choose how to run it

WhereYou manageUse when
MachinesOne novad binary per machine, under systemdVirtual or physical machines without containers
DockerOne container per machineMachines that already run containers
KubernetesOne cluster resource; an operator runs the restA Kubernetes cluster, and autoscaling
Docker ComposeOne file on your laptopTrying Nova and developing against it, never production

A cluster needs three nodes or more. With three, it survives the loss of any one machine, its disk included.

Ports

PortFlagWho connects
7780--listenClients, the CLI, and the Gateway
Off unless set--http-listenTrusted HTTP clients of the data bridge
7790, in these guides--fleet-listenThe other nodes and the Gateway
9090, in these guides--metrics-listenPrometheus, health checks and the admin dashboard
6660 to 6664--oxia-server-portThe other nodes, for the embedded metadata store
8080novagateway --listenBrowsers and outside clients

Only 7780, the data bridge when you turn it on, and the Gateway's port are for clients. Keep the others on a private network; Network, ports and TLS says why.

Where to go next

The Architecture tab explains how these parts work together.

On this page