v0.7.0

Fixed Limits and Timeouts

Last updated


This page lists the constants compiled into ToriiDB, such as timeouts, the compaction threshold, and the socket path, which cannot be configured.

Fixed Settings


These are constants in the source, not configurable:
SettingValueSource
Embedding modeltext-embedding-3-smallcore/openai/client.go
Embedding HTTP timeout30 score/openai/client.go
Background vector attach timeout35 score/store/set.go
Expiry sweep interval1 minutecore/store/store.go
Compaction thresholdlog size >= max(snapshot size, 1 MiB) * 2core/store/aof.go
Socket path/tmp/toriidb-<uid>-<hex of first 8 bytes of sha256(dir)>.sock (16 hex characters)core/daemon/socket.go
Socket probe timeout500 mscore/daemon/socket.go
Server per-frame read / write deadline30 s / 30 score/daemon/daemon.go
Max frame size8 MiBcore/daemon/protocol.go
Client call timeout without ctx deadline10 score/daemon/client.go
Client idle pool8 connections, reused within 5 score/daemon/client.go
Client dial attempts3, backoff 5 ms then 10 mscore/daemon/client.go


中文