Limits

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

LimitValueAt the limit
One record's content: its body plus every header name and value1 MiB (--max-record-bytes)400, INVALID_ARGUMENT; nothing appended
One batch's content1 MiB (--max-batch-bytes)400 with reason: batch_too_large; nothing appended
Records in one batch1,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 batch2.5 times the batch content limit, 2.5 MiB400, naming the weight limit; nothing appended
Headers on one record64 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 thereOver gRPC INTERNAL, through the Gateway 500; on a bridge past 100, 400
A header's nameNot empty400, INVALID_ARGUMENT
A record's timestamp_msRequired under client-require, refused under arrival400, INVALID_ARGUMENT
A fencing token36 bytes of UTF-8Today 500, UNKNOWN
One gRPC request messageOne batch plus 1 MiB, 2 MiBRESOURCE_EXHAUSTED, before it is read
One HTTP append or send bodyAbout 6.3 MiB (6,606,680 bytes)413, before it is read whole
One record's or message's JSONAbout 1.36 MiB413; the error says to send the body as body_b64
Any other HTTP request body1 MiB413
HTTP request headers64 KiB431
One HTTP session frameOne batch plus 1 MiB, 2 MiBThe session ends with terminal 400
A session's batches awaiting acknowledgement48 MiB on Standard and 8 MiB on Express, and 1,024 batchesThe node reads no more frames until acknowledgements free room; the producer waits
A stream's throughput_max_bytes_per_secondSet per streamAppends are slowed down to the limit
Producer sessions, and one-shot appends held at once, on one nodeSet by the node's memory; see node limitsRESOURCE_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 batch

In 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

LimitValueAt the limit
Records in one read page8,192 (--max-read-records)A larger limit is cut to it
Bytes in one read page8 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 watermarkNone410, OUT_OF_RANGE; use from=beginning or clamp
Subscriptions on one nodeSet by the node's memory, at most 16,384RESOURCE_EXHAUSTED
Subscriptions and sessions together on one HTTP host4,096503 with Retry-After: 1
An HTTP client that stops reading a subscription or a session60 sThe connection is closed
A gRPC response16 MiBnovad 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.

LimitValueAt the limit
Messages in one send1,000, and 1 MiB of bodies and headers400; nothing stored
A routing key1 MiB400
An idempotency key1 to 256 bytes400
A message's TTL (message_ttl_ms)4 days by default, at most 14 daysPast 14 days, 400
A dead letter's TTL14 days by defaultNone
A claim's TTL30 s by default, at most 12 hoursPast 12 hours, 400
A claim's whole life12 hours from its deliveryAn extend past it is refused: 409 with refusal: past_max_deadline
A nack's retry_after_ms14 days400 with refusal: malformed
Messages in one claim (max)256A larger max is cut to it
A claim's wait30 sA longer wait is cut to it
Claims waiting on one node128429 with limit: max_claim_waits
A claim's worker256 bytes400
Dead letters in one replay100 by default, at most 1,000A larger limit is cut to it
Work sessions on one node512RESOURCE_EXHAUSTED with max_work_sessions
Unspent credit in one work session1,024RESOURCE_EXHAUSTED with max_credits; the session ends
Queues on one list page100A 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

LimitValueAt the limit
A bucket name3 to 63 bytes of lowercase letters, digits, and inner hyphensToday 500
A stream key1 to 512 bytes of UTF-8, no control charactersToday 500
A stream's bucketMust exist; no route creates a bucket404
Deleting a bucketOnly when it holds nothing503
Streams or buckets on one list page1,000A larger limit is cut to it
Ranges of a scalable stream at creation256Today 500

Tokens and credentials

LimitValueAt the limit
nova: grants in one token's scope64The token is refused: 401
A token's lifetime from the exchange15 minutes by default, at most 1 hourA longer ttl_seconds is cut to 1 hour
exp in a tokenRequired401
A session or subscription past its token's expNoneIt ends. A subscription sends auth-expired first
A token's Gateway limits: rps, connections, read_Bps, write_BpsNone unless the token carries them429; a subscription pauses instead
Callers whose rates one Gateway tracks16,384The 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.

On this page