docs: update for worker mode (tori server / tori worker)

This commit is contained in:
2026-04-06 12:56:50 +01:00
parent e4ba385112
commit b5cecec485
4 changed files with 37 additions and 3 deletions

View File

@@ -88,6 +88,23 @@ database:
path: "tori.db"
```
## Worker 部署
Worker 可以部署在任何机器上,通过 WebSocket 连接 server
```bash
# 同一台机器
./tori worker
# 远程连接
./tori worker --server wss://tori.euphon.cloud/ws/tori/workers --name my-worker
# 环境变量方式
TORI_SERVER=wss://tori.euphon.cloud/ws/tori/workers TORI_WORKER_NAME=gpu-worker ./tori worker
```
Server 容器内的 CMD 已改为 `./tori server`。Worker 可以独立部署,不需要 config.yamlLLM config 由 server 下发)。
## 查看状态
```bash