Update docs for load balance, logs, and Distributed Value

This commit is contained in:
Robert Wojciechowski
2026-02-28 04:53:20 +00:00
parent d361d6e418
commit ff7bfb5ef5
2 changed files with 81 additions and 31 deletions
+27
View File
@@ -22,6 +22,7 @@ This document describes the **public HTTP API** added to ComfyUI-Distributed to
- Pings workers (`GET /prompt`) to include only reachable ones.
- Dispatches the workflow to workers (`POST /prompt`).
- Queues the master workflow in ComfyUI’s prompt queue.
- If any `DistributedCollector` has `load_balance=true`, selects one least-busy participant for this run.
### What it does *not* add
@@ -172,6 +173,32 @@ If you call the API from a browser (not from a backend), ensure the master Comfy
---
## Log Endpoints
### `GET /distributed/worker_log/{worker_id}`
Read log files for workers launched locally by the master UI process manager.
- Intended for managed local workers.
- Query param: `lines` (optional, default `1000`).
### `GET /distributed/local_log`
Read this ComfyUI instance's in-memory runtime log buffer.
- Available on any ComfyUI-Distributed instance (master or worker).
- Query param: `lines` (optional, default `300`, max `3000`).
### `GET /distributed/remote_worker_log/{worker_id}`
Proxy endpoint on master that fetches logs from a configured remote/cloud worker's
`/distributed/local_log`.
- Intended for remote/cloud workers in master config.
- Query param: `lines` (optional, default `300`, max `3000`).
---
## Examples
### 1) Minimal `curl`