Settings

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:

GET /v1/streams/apps/orders%2Feu, a stream created on its first append
{
  "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.

SettingDefaultSet atA change takes effect
kindplainCreation onlyNever changes
initial_ranges1Creation of a scalable stream, at most 256Never changes; ranges then split and merge
classstandardCreation, reconfigureAfter producers reconnect
producer_policyanyCreation, reconfigureAfter producers reconnect
timestamping_modeclient-preferCreation, reconfigureAfter producers reconnect
timestamping_uncappedfalseCreation, reconfigureAfter producers reconnect
throughput_max_bytes_per_second0, no limitCreation, reconfigureAfter producers reconnect
retention_max_age_ms0, keep foreverCreation, reconfigureAt once, except a shorter age; see How retention applies
retention_max_bytes0, no limitCreation, reconfigureAt once
Fencing tokenNoneThe fence operationAt 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.

SettingDefaultA change takes effect
nameRequiredNever changes
locationThe cluster's locationNever changes
create_stream_on_appendfalseAt once
create_stream_on_readfalseAt once
default_classstandardFor streams created afterwards
default_producer_policyanyFor streams created afterwards
default_timestamping_modeclient-preferFor streams created afterwards
default_timestamping_uncappedfalseFor streams created afterwards
default_throughput_max_bytes_per_second0, no limitFor streams created afterwards
default_retention_max_age_ms0, keep foreverFor streams created afterwards
default_retention_max_bytes0, no limitFor 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.

See also

On this page