docs: update for worker mode (tori server / tori worker)
This commit is contained in:
@@ -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.yaml(LLM config 由 server 下发)。
|
||||
|
||||
## 查看状态
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user