Settings
Settings decide how a stream stores, orders, and keeps its records, and its bucket supplies their defaults.
A stream's settings decide how it stores, orders, and keeps its records. Most come from its bucket's defaults when the stream is created. A stream's response shows its settings. It leaves out a setting that is zero or false, and always shows the fencing token, empty when none is installed:
{
"stream_id": "01a20480-73ac-7dfa-9c45-934c27cde703",
"bucket": "apps",
"key": "orders/eu",
"kind": "plain",
"class": "standard",
"producer_policy": "any",
"retention_max_age_ms": 604800000,
"timestamping_mode": "client-prefer",
"created_at_unix_ms": 1795371856812,
"fencing_token": ""
}This page lists every setting in one place. Each row links to the page that explains it.
Stream settings
You set these in the request that creates the stream, and change them with a reconfigure request: ReconfigureStream / reconfigureStream in the SDKs, a PATCH over the API, or nova stream reconfigure. A setting the create request leaves out comes from the bucket's defaults. The defaults below are Nova's own, which a bucket starts with.
| Setting | Default | Set at | A change takes effect |
|---|---|---|---|
kind | plain | Creation only | Never changes |
initial_ranges | 1 | Creation of a scalable stream, at most 256 | Never changes; ranges then split and merge |
class | standard | Creation, reconfigure | After producers reconnect |
producer_policy | any | Creation, reconfigure | After producers reconnect |
timestamping_mode | client-prefer | Creation, reconfigure | After producers reconnect |
timestamping_uncapped | false | Creation, reconfigure | After producers reconnect |
throughput_max_bytes_per_second | 0, no limit | Creation, reconfigure | After producers reconnect |
retention_max_age_ms | 0, keep forever | Creation, reconfigure | At once, except a shorter age; see How retention applies |
retention_max_bytes | 0, no limit | Creation, reconfigure | At once |
| Fencing token | None | The fence operation | At once |
The settings marked "after producers reconnect" change how Nova writes the stream, so a change restarts the stream's writing. Its producers reconnect once, which the SDKs do for you, and every append after the change follows the new setting. The reconfigure request returns once that is done.
A scalable stream's settings are fixed at creation, except retention. A reconfigure that changes any other setting on a scalable stream is refused. A queue's stream refuses reconfigure requests altogether; a queue has settings of its own.
Bucket settings
You set these when you create the bucket, and change them with an update. The CLI can create a bucket but not update one.
| Setting | Default | A change takes effect |
|---|---|---|
name | Required | Never changes |
location | The cluster's location | Never changes |
create_stream_on_append | false | At once |
create_stream_on_read | false | At once |
default_class | standard | For streams created afterwards |
default_producer_policy | any | For streams created afterwards |
default_timestamping_mode | client-prefer | For streams created afterwards |
default_timestamping_uncapped | false | For streams created afterwards |
default_throughput_max_bytes_per_second | 0, no limit | For streams created afterwards |
default_retention_max_age_ms | 0, keep forever | For streams created afterwards |
default_retention_max_bytes | 0, no limit | For streams created afterwards |
An update replaces every bucket setting at once. A default left out of the update goes back to the value in this table, so read the bucket first and send all its settings back.
How a create fills in settings
A stream copies its bucket's defaults once, when it is created. It does not follow later changes to the bucket.
In a create request, a zero number and a false mean "not set", so the stream takes the bucket's value. You cannot use a create request to turn off a limit that the bucket sets: "retention_max_age_ms": 0 still gives the stream the bucket's retention. To remove it, reconfigure the stream after you create it. A reconfigure request treats every field you send as a value, including zero.
Nova refuses a combination that cannot work: uncapped timestamps with age retention, on a stream or in a bucket's defaults.
Throughput limit
throughput_max_bytes_per_second caps how many bytes of records, counting bodies and headers, the stream takes each second. Appends above it wait, from every producer and one-shot append together, so a writer slows down instead of failing. The limit allows a burst of up to one second's worth. On a scalable stream, each range has the limit separately. Use it to stop one stream from taking more than its share.