Limits
The limits a client can reach, their values, and what happens at each one.
Every limit below is one a request can reach. At a limit, Nova does one of three things: it refuses the request with an error, it makes the request wait, or it cuts the request down to the limit and answers. Each row says which. Most limits are node settings; the value shown is the default, and a cluster may set another.
Records and appends
| Limit | Value | At the limit |
|---|---|---|
| One record's content: its body plus every header name and value | 1 MiB (--max-record-bytes) | 400, INVALID_ARGUMENT; nothing appended |
| One batch's content | 1 MiB (--max-batch-bytes) | 400 with reason: batch_too_large; nothing appended |
| Records in one batch | 1,000 (--max-batch-records) | 400 with reason: batch_too_large; nothing appended |
| One batch's decoded weight: its content plus 192 bytes a record, 128 a header and 4 KiB a batch | 2.5 times the batch content limit, 2.5 MiB | 400, naming the weight limit; nothing appended |
| Headers on one record | 64 over gRPC and through the Gateway; 100 on a node's data bridge for a stream that node leads. A node that forwards to the leader passes the record on over gRPC, so 64 applies there | Over gRPC INTERNAL, through the Gateway 500; on a bridge past 100, 400 |
| A header's name | Not empty | 400, INVALID_ARGUMENT |
A record's timestamp_ms | Required under client-require, refused under arrival | 400, INVALID_ARGUMENT |
| A fencing token | 36 bytes of UTF-8 | Today 500, UNKNOWN |
| One gRPC request message | One batch plus 1 MiB, 2 MiB | RESOURCE_EXHAUSTED, before it is read |
| One HTTP append or send body | About 6.3 MiB (6,606,680 bytes) | 413, before it is read whole |
| One record's or message's JSON | About 1.36 MiB | 413; the error says to send the body as body_b64 |
| Any other HTTP request body | 1 MiB | 413 |
| HTTP request headers | 64 KiB | 431 |
| One HTTP session frame | One batch plus 1 MiB, 2 MiB | The session ends with terminal 400 |
| A session's batches awaiting acknowledgement | 48 MiB on Standard and 8 MiB on Express, and 1,024 batches | The node reads no more frames until acknowledgements free room; the producer waits |
A stream's throughput_max_bytes_per_second | Set per stream | Appends are slowed down to the limit |
| Producer sessions, and one-shot appends held at once, on one node | Set by the node's memory; see node limits | RESOURCE_EXHAUSTED / 429 "busy, retry", with a hint of when; nothing appended |
A batch past a limit is refused whole, and the SDKs never retry it: the same batch is refused the same way. The error names the batch and the limits:
dataplane: batch of 1,001 records is over this node's 1,000-record limit (1 MiB); upgrade the Nova SDK if it predates the limit, or split the batchIn a producer session, a batch past a limit ends the session. The SDKs keep each batch within the limits the node reports when a session opens, and refuse a larger call before sending it; Append records has the details. The HTTP body limit follows from the batch limits: the largest batch as base64, plus room for every record's and header's keys, plus 1 MiB.
Reads and subscriptions
| Limit | Value | At the limit |
|---|---|---|
| Records in one read page | 8,192 (--max-read-records) | A larger limit is cut to it |
| Bytes in one read page | 8 MiB (--max-read-bytes) | A larger max_bytes is cut to it. One record always returns, however large |
| A read's start below the trim watermark | None | 410, OUT_OF_RANGE; use from=beginning or clamp |
| Subscriptions on one node | Set by the node's memory, at most 16,384 | RESOURCE_EXHAUSTED |
| Subscriptions and sessions together on one HTTP host | 4,096 | 503 with Retry-After: 1 |
| An HTTP client that stops reading a subscription or a session | 60 s | The connection is closed |
| A gRPC response | 16 MiB | novad refuses to start with read limits that could pass it |
An SSE subscription sends a heartbeat every 15 seconds.
Queues
A message is stored as a record, so the record limits apply to each message
and the batch limits to each send, counting the nova- headers the queue adds.
| Limit | Value | At the limit |
|---|---|---|
| Messages in one send | 1,000, and 1 MiB of bodies and headers | 400; nothing stored |
| A routing key | 1 MiB | 400 |
| An idempotency key | 1 to 256 bytes | 400 |
A message's TTL (message_ttl_ms) | 4 days by default, at most 14 days | Past 14 days, 400 |
| A dead letter's TTL | 14 days by default | None |
| A claim's TTL | 30 s by default, at most 12 hours | Past 12 hours, 400 |
| A claim's whole life | 12 hours from its delivery | An extend past it is refused: 409 with refusal: past_max_deadline |
A nack's retry_after_ms | 14 days | 400 with refusal: malformed |
Messages in one claim (max) | 256 | A larger max is cut to it |
A claim's wait | 30 s | A longer wait is cut to it |
| Claims waiting on one node | 128 | 429 with limit: max_claim_waits |
A claim's worker | 256 bytes | 400 |
| Dead letters in one replay | 100 by default, at most 1,000 | A larger limit is cut to it |
| Work sessions on one node | 512 | RESOURCE_EXHAUSTED with max_work_sessions |
| Unspent credit in one work session | 1,024 | RESOURCE_EXHAUSTED with max_credits; the session ends |
| Queues on one list page | 100 | A larger limit is cut to it |
How much a node holds in memory for each queue, and how many ranges it delivers at once, are node settings: see Node bounds.
Names and addresses
| Limit | Value | At the limit |
|---|---|---|
| A bucket name | 3 to 63 bytes of lowercase letters, digits, and inner hyphens | Today 500 |
| A stream key | 1 to 512 bytes of UTF-8, no control characters | Today 500 |
| A stream's bucket | Must exist; no route creates a bucket | 404 |
| Deleting a bucket | Only when it holds nothing | 503 |
| Streams or buckets on one list page | 1,000 | A larger limit is cut to it |
| Ranges of a scalable stream at creation | 256 | Today 500 |
Tokens and credentials
| Limit | Value | At the limit |
|---|---|---|
nova: grants in one token's scope | 64 | The token is refused: 401 |
| A token's lifetime from the exchange | 15 minutes by default, at most 1 hour | A longer ttl_seconds is cut to 1 hour |
exp in a token | Required | 401 |
A session or subscription past its token's exp | None | It ends. A subscription sends auth-expired first |
A token's Gateway limits: rps, connections, read_Bps, write_Bps | None unless the token carries them | 429; a subscription pauses instead |
| Callers whose rates one Gateway tracks | 16,384 | The oldest is forgotten, and its burst starts over |
SDK client bounds
The SDKs keep bounds of their own: connection attempts, the retry budget, remembered leaders, connections, redirects and cached tokens. They are listed in SDK client limits, and what the SDKs retry is in Errors. Where the node's limit and the SDK's differ, the SDK follows the node's once a session has told it. The Errors page has every status in full.