v0.7.0

固定限制與逾時

最後更新

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

固定設定

以下為原始碼常數,無法設定:

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

相關頁面

EN