novad
Every setting a Nova node reads, from its flags, its environment, or a YAML file.
novad is the Nova node: it serves requests and, by default, runs the background auditor. This page lists every setting it reads. The flag lists are generated from the command novad runs (cli/flags), so names, environment variables, and defaults match novad --help.
The help text uses Nova's internal names: a node is a star, its ID is its StarID, and the cluster is the constellation.
novad [options]Where settings come from
Each setting has a flag, a NOVAD_* environment variable, and a key in a YAML file. A flag wins over the environment, the environment over the file, and the file over the built-in default. Keys in the file are the flag names without the leading dashes, such as s3-bucket or auditor-read-grace. Durations use Go syntax (2m, 1h30m), and switches take true or false.
Supply secrets through the environment or the file, never on the command line, where any process listing shows them. The help text of each secret says so: HMAC secrets, passwords, peer tokens, and the root API key.
Share one file across the nodes, and set what differs per node in the environment:
dir: /data
listen: ":7780"
http-listen: ":7788"
metrics-listen: ":9090"
oxia: oxia:6648
oxia-registry: oxia-registry:6648
s3-bucket: nova
s3-endpoint: http://rustfs:9000
s3-region: us-east-1
s3-path-style: true
s3-express-buckets: az-1=nova-exp-az1,az-2=nova-exp-az2,az-3=nova-exp-az3
auth: jwt
jwt-hmac-secret-file: /etc/nova/hmac.key
root-credential-file: /etc/nova/root-seed.json
object-cache-instances: http://objectcache-0:3128,http://objectcache-1:3128
log-level: infoNOVAD_CONFIG=/etc/nova/nova.yaml NOVAD_ZONE=az-1 NOVAD_ADVERTISE=novad-1:7780 novadRestrict access to a file that holds secrets. A node reads its settings once, at start; restart it to apply a change.
Storage modes
Two flags choose where a node keeps its data:
| Mode | Flags | Use when |
|---|---|---|
| Memory | neither | Trying Nova out. Everything is lost on exit, and the node logs a warning at start. |
| Local disk | --local-data --dir <dir> | One machine, for development. Objects go to <dir>/data and metadata to <dir>/metadata, with no replication. |
| Object storage | --s3-bucket <bucket> | Every real deployment. Metadata is embedded oxia under <dir>/metadata, or external oxia with --oxia. |
The memory-mode warning reads novad: IN-MEMORY storage; all stream data and metadata are lost on exit; use --local-data or --s3-bucket to persist. --local-data and --s3-bucket exclude each other. --dir alone persists nothing. The oxia client flags, the S3 connection flags, and the object cache need --s3-bucket, and an incomplete remote configuration fails at start. Local mode has no Express class and no read plans: ReadPlan answers Unimplemented, and the Gateway falls back to Read and Subscribe.
Node
Change these to name the node, place it, and choose its listeners.
--node-idtakes any name up to 128 bytes without whitespace. A UUID is used as the StarID as it is; any other name maps to a fixed UUID. Logs show it asnode_id.--locationis the cloud region as a lowercase DNS label, such aseu-central-1. Every node of one cluster must agree. Nova stamps it on each bucket created here, and it is the label the door hangs under.bis refused, and so is an express zone label.--advertisemust resolve and route from wherever clients and the Gateway run, because redirects send them there.- The client listener (
--listen) serves every service.--fleet-listenserves the same services to the cluster's own processes: the other nodes, the auditors, and the Gateway. Bind it to a private network. Without a fleet listener, a node has one uncapped listener, and in a cluster it logs a warning at start. --admin-uiand--admin-ui-readertake effect only with--metrics-listen. See Admin UI.
TLS
Change these to encrypt the listeners and to verify peers and clients. --tls-key is required with --tls-cert, and auth mode mtls requires --tls-client-ca. See Network, ports and TLS.
Auth
Change these to choose how every caller, clients and peers alike, proves who it is. See Server authentication for the walkthrough.
jwtandbasiccarry credentials on the wire. They run over plaintext too, but a listener beyond loopback without TLS logs one warning at start.jwttakes exactly one key source: local named keys, a JWKS or OIDC issuer, or an HMAC secret. A node that only verifies needs--peer-service-token-fileorNOVAD_PEER_SERVICE_TOKEN. A node that signs mints peer tokens and serves the API-key exchange.- Keys are found in
<dir>/auth/keys/<id>.public.pemand<id>.private.pem. Signing uses--jwt-signing-key-id, then<dir>/auth/active-key, then the first private key ID in alphabetical order. - Key settings are chosen as one group from the highest level that sets any: flags, then environment, then file, then directory discovery. A public-only group cannot borrow private keys from a lower level.
basicneeds--admin-usernameandNOVAD_ADMIN_PASSWORD.- Set at most one root credential source:
--root-credential-file,--root-credential, or--root-api-key. A seed creates therootcredential if it is missing and changes nothing on an existing one. Itskey_idmust be 16 lowercase hex characters.
Metastore (oxia)
Change these to point the node at external oxia, or to shape the embedded oxia it runs. --oxia-* configures the client; --oxia-server-* configures embedded oxia. See Metadata store for the shapes and choosing the session timeout.
--oxia-session-timeoutis how long a failed node's leases survive, so every failover waits at least that long. The client sends a heartbeat at a tenth of the timeout, but never more often than every 2 seconds. Up to a 20 s timeout, that is every 2 seconds.--oxia-namespacesets the prefix of the five keyspaces:<prefix>-streams,-queues,-sessions,-registry, and-dispatch. Embedded oxia usesnovawhen it is unset.--oxia-server-peerslists the metadata peers, in the same order on every node, and selects cluster mode. List a node grown from a standalone one first.--oxia-server-shardsis read once, when each keyspace is founded.- With
--oxia-server-metadata=configmap, a node refuses to start under other ConfigMap names than its first start used.
Object storage (S3)
Change these to choose the bucket and to tune how write attempts are cut and retried. The S3 credential is not a novad setting: the AWS SDK's default chain finds it in AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, a shared profile, or an IAM role (IRSA on EKS).
- An early write attempt is cut after
--s3-attempt-baseplus its body's time at--s3-attempt-min-rate, doubled per attempt and never past--s3-attempt-timeout. The last of three attempts gets the whole ceiling. - A stream object up to
--s3-single-put-maxMiB is one conditional PUT; each attempt gets at least the object's time at 4 MiB/s. A failed attempt sends the whole object again.
Standard write path
Change these to trade acknowledgement latency for fewer, larger writes, or to bound the memory a busy node holds. WAL, slots and ledgers explains each stage.
- A flight is cut at
--s3-bundle-size-mibor when its oldest byte has waited--s3-bundle-batch-interval. Larger flights cost fewer PUTs; a shorter wait acknowledges sooner. - At
--s3-memory-buffer-mib, producers wait. At--s3-wal-backlog-flights, or 4 GiB of flights, new flights wait for the indexer. --absorb-pass-intervalgroups more slots into each metadata update, at the cost of read visibility on other nodes and longer failover. A full backlog skips the wait.--wal-key-layoutapplies to new Standard ledgers only; each ledger records its own. Do not roll back to a build that predates the hashed layout. See Upgrades.- Watch
nova_wal_backlog_age_secondsandnova_wal_backlog_stall_totalfor the backlog, andnova_direct_pending_bytesagainstnova_direct_pending_limit_bytesfor the write buffer. See Writes and the WAL.
Express
Change these to turn on the Express class. A non-empty bucket set turns it on. Zone labels are spelled as in --zone; an AZ ID such as use1-az4 must match the ID in its directory bucket's name, and directory buckets refuse path-style addressing.
The Express WAL uses fixed values: a 128-slot window, a 256 MiB pool, a backlog of 1,024 flights and 4 GiB, a 25 ms flush, and a 30 s slot budget. --s3-express-parallel-uploads, --s3-express-memory-buffer-mib, and --s3-express-publish-deadline configure only the Express fan-out store; the Express WAL does not read them.
Limits
Change these when clients reach a limit, or to bound what one node holds. Node limits and budgets lists every bound with what happens when it is reached.
- A read is cut to
--max-read-bytesand--max-read-records. An append over a bound is refused with a message that names the batch, the node's limits, and the fix. novadrefuses to start when--max-record-bytesis above--max-batch-bytes, or when a session window cannot hold one batch.- A session's handshake advertises the batch bound, the window, and the batch cap, and the SDKs cut batches to fit. Raising the batch flags lets current SDKs send larger batches. Set the Gateway's batch flags to the same values.
- The gRPC listener reads at most one batch plus 1 MiB per message, 2 MiB by default.
--max-producer-sessionsonly lowers the memory plan's cap. A higher value starts at the plan's cap, with a warning.- The client connection caps apply only with
--fleet-listen. --grpc-stream-window-kibsets the per-stream window. The connection window is a fixed 16 MiB.- Watch
nova_dataplane_sessionsagainstnova_dataplane_sessions_limit, refusals innova_dataplane_shed_total, andnova_listener_connectionsagainstnova_listener_limit.
Ingress
Change these when HTTP requests wait too long for room, or to bound the memory that decoding them takes. They apply to the data bridge (--http-listen) only; gRPC reads each message as it arrives, within the limits. A request without a deadline waits at most --ingress-max-wait, and a body that sends nothing for --ingress-progress is cut off. Watch nova_ingress_wait_oldest_seconds and nova_ingress_refused_total.
Scalable streams
Change these to make ranges split sooner or later. The defaults are half of one leadership's measured append ceiling; lower them on smaller hardware. A negative --range-split-mib never splits.
Auditor
Change these to run the auditor apart from serving, or when cleanup falls behind. The auditor explains the modes and the tuning.
--audit=onlyruns cleanup without serving or registering as a serving node, and needs--auditor-fetch-cache-dirover object storage, or it refuses to start. A serving node without one logs a warning.- The fetch cache directory is wiped at start; use dedicated scratch, such as an
emptyDir.--auditor-fetch-cache-mibbelow twice--auditor-workerstimes 64 MiB refuses to start. - Keep
--auditor-orphan-graceabove the slowest valid commit, and--auditor-read-graceabove twice any reader's cached-footer lifetime. Read plans last half the read grace. - The denorm timers are explained in Stream objects and denorm.
- Watch
nova_auditor_due_age_seconds, the age of each cleanup queue's oldest due job, andnova_auditor_budget_wait_seconds, the time jobs wait on the budgets.
Object cache
Change these to route reads and deletes through a shared object cache. Cache failures fall back to direct requests, counted in nova_objectcache_fallbacks_total, and an invalid list stops the node at start.
Read plans
Change this to hand trusted readers raw bucket and key locations instead of presigned URLs. A plan is valid for half of --auditor-read-grace, 5 minutes by default. See Gateway and read plans.
Shutdown
Change these when streams need longer to move before a node exits. The first SIGTERM or SIGINT starts a bounded handoff, then closes the node. A second signal skips the rest of the handoff, and a third is the operating system's default. Closing takes up to 25 s after the drain, so set the supervisor's kill deadline above --exit-drain-budget plus 25 s; Compose allows 75 s.
Logging
Change these to get debug lines or JSON. See Logs.
Retired spellings
novad still reads these old names for one release, from flags, the environment, and the file, and logs a warning naming the replacement for each one in use. An old name that disagrees with its replacement stops the node at start.