TinyStore

Production / Limits and defaults

Limits and defaults

Every bound and default of TinyStore in one place, by engine. A call past a bound fails with a limit or invalid error that names the bound, and changes nothing. Each chapter of the book has the same numbers beside the calls they bound.

The store

WhatLimit or default
durability'full' for kv, jobs, sql and blobs; 'os' for records and metrics
memory budgetnone unless set; 1 GiB for tinystore serve --listen
a call waiting for memory10 seconds, then limit
free disk the store keeps1 GiB, keepFree
a time in the future10 minutes ahead of the store's clock
a sidecar with no clientsexits after 30 seconds
a name of a bucket, queue, stream, database, index, config[a-z0-9][a-z0-9_-]{0,63}

SQL

WhatLimit or default
a transaction5 seconds
rows all or columns holds64 MiB of values
one each read5 seconds of one snapshot
writes in one shared commit1,024, or 8 MiB
readersone per processor, 4 to 16, idle ones close after a minute
statements compiled per connection128

KV

WhatLimit or default
a key, with its owners1 KiB
a value1 MiB
a page of list1,000 keys
a quotaone to eight windows
rate limits and counters in memory100,000 keys per name, written every second
an idle key's renewalonce a thirtieth of its span has passed

Jobs

WhatLimit or default
attempts10
backofffrom 1 s, doubling, up to 1 h, ±10 % at random
timeout1 minute per run
a lease30 seconds, renewed every 15 while a run lasts
keep of failed jobs7 days
waiting jobs10,000,000 per queue, maxWaiting
an id, a group1 to 1,024 bytes
a value, a step's answer1 MiB of JSON
progress4 KiB of JSON
a page1,000 jobs or 4 MiB

Blobs

WhatLimit or default
a filenone, unless maxFileSize
a path with its folders1 KiB and 16 segments
a content type256 bytes
meta2 KiB in all
a page1,000 files
a file kept as a rowup to 16 KiB; larger ones are files of their own
WhatLimit or default
a document1 MiB
a search's text1 KiB, its first 32 words
a vector4,096 dimensions
limit + offset1,000; limit is 10
a field's weightabove 0, at most 1,000
a filter8 conditions, 100 values
vectorWeight0.5

Channels and locks

WhatLimit or default
a message1 MiB
a branch's logits newest 1,024 messages or 4 MiB
every channel's messages64 MiB of the store's memory
a store's subscriptions10,000
a connection's pending output8 MiB
a lock's wait10 seconds
maxHoldnone

Records and metrics

WhatLimit or default
a stream's keep14 days
a logger's buffer1,024 lines, written every second
a page of events1,000, at most 10,000
a name's keep in metrics30 days
instruments' writesevery 15 seconds, at flush and at close
sets of labels per instrument2,000 between two sends, then __overflow
series in a store100,000
buckets of an aggregate100,000

See also

Edit this page on GitHub Updated 19 October 2026

esc
↑↓ navigate ↵ open ⇥ filter 0 results