v0.7.0

固定限制與逾時

最後更新


本頁列出編譯進 ToriiDB、無法設定的常數,例如逾時、壓縮門檻與 socket 路徑。

固定設定


以下為原始碼常數,無法設定:
設定值原始碼
Embedding 模型text-embedding-3-smallcore/openai/client.go
Embedding HTTP timeout30 秒core/openai/client.go
背景附加向量 timeout35 秒core/store/set.go
過期清理間隔1 分鐘core/store/store.go
壓縮門檻log 大小 >= max(snapshot 大小, 1 MiB) * 2core/store/aof.go
Socket 路徑/tmp/toriidb-<uid>-<sha256(dir) 前 8 bytes 的 hex>.sock(16 個 hex 字元)core/daemon/socket.go
Socket 探測 timeout500 毫秒core/daemon/socket.go
Server 每個 frame 讀/寫期限30 秒/30 秒core/daemon/daemon.go
Frame 大小上限8 MiBcore/daemon/protocol.go
ctx 無期限時的 client 呼叫 timeout10 秒core/daemon/client.go
Client 閒置連線池8 條,5 秒內可重用core/daemon/client.go
Client 撥號嘗試3 次,退避 5 毫秒後 10 毫秒core/daemon/client.go

相關頁面


EN