v0.4.0: park race (409 on /v1/unload) latches the LLM, ComfyUI emptied on short LLM calls, stop on LATCHED
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start from the park path that calls POST /v1/unload and gets a 409 when a concurrent ComfyUI lease exists during the LLM resume, and from the min_turn lease-turn logic that is meant to prevent it. Reproduce by sending a ComfyUI POST /prompt while the LLM is still resuming, then check whether the engine ends up LATCHED with the request unanswered. Done means the second lease waits or the 409 is retried, and the pending LLM request gets an explicit response. Points 2 and 3 are design questions and should be settled with the maintainer first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: v0.4.0, Windows (berth daemon + berth gateway), one card, two engines: a llama.cpp-style LLM server and ComfyUI. min_turn = 45 s, keep_comfyui_up = true, floor_gib = 15. An upstream scheduler sends ComfyUI POST /prompt and OpenAI-style LLM requests through the gateway (LLM on one listen port, ComfyUI on another).
Seen in real use over one day. These are three separate points; I can split them into separate issues if you prefer.
1. Race: a concurrent lease during the LLM resume makes the park fail, and the LLM ends up latched with its request left hanging
- A request for the LLM arrives, so ComfyUI is parked and the LLM is resumed.
- While the LLM is still resuming, a new ComfyUI
POST /promptarrives and creates a concurrent lease. - The park call fails with
POST /v1/unload→ 409 Conflict. Berth then stops the LLM engine, which stays LATCHED. The pending LLM request never gets a response; the client times out. min_turn = 45 snarrows the window but does not close it.- Expected: the second lease waits for the turn to settle (or the 409 is retried), and the pending request is answered or failed explicitly.
2. A short LLM call empties ComfyUI even with keep_comfyui_up
Each switch to the LLM unloads ComfyUI's models. The next render then reloads them from cold: about 20–30 s before ComfyUI is ready, plus about 100 s of model loading, so roughly 2 min of near-idle GPU per short LLM call.
Request: an option to keep ComfyUI's memory as is for a short LLM lease, when VRAM and RAM allow it (the LLM uses about 10.5 GB of VRAM, ComfyUI about 8 GB idle, on a 12 GB card: it does not always fit), or at least to park ComfyUI without making it drop its model cache.
3. berth stop on a LATCHED engine
What should berth stop (or POST /v1/berth/stop) do on an engine that is LATCHED after point 1? Clear the latch and stop it, or refuse? The docs do not say, and we would like to use it as a recovery step.
Logs (berthd and gateway) are available if useful; I would just strip local paths from them first.
- Lingua principale
- Go
- Stelle
- 226
- Fork
- 20
- Merge medio
- 1h 25m
- PR unite (30g)
- 238
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di T-Crypt/berth
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
T-Crypt/berth#204 · 11 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
berthd --gpu-backend amd exits at startup on a desktop session: "process VRAM exceeds card usage"Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
T-Crypt/berth#196 · 8 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Lend part of a card from a running engine and get it back, without a park or a reloadForse già presa @T-Crypt l’ha presa 8 giorni fa. Aperta
T-Crypt/berth#189 · 27 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
T-Crypt/berth#172 · 16 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Idea: Proxmox support in every layout (testers wanted)Forse già presa @sharmis-tp l’ha presa 5 giorni fa. Apertaenhancement help wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
T-Crypt/berth#128 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di T-Crypt/berth
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kagent-dev/kagent#3462 ·
I maintainer di solito rispondono entro 1 giorno
-
netrc credential source accepts a password with an embedded CR/LF that every other source rejectsApertaagent-butler-finding bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
jordansmall/spindrift#6268 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 7 giorni