docs: qualify optional Ollama integration status #410

Merged
arnaud.dartois merged 1 commits from docs/ollama-status-409 into main 2026-11-13 12:47:01 +01:00
2 changed files with 4 additions and 3 deletions

No files matched your search

+3 -3
View File
@@ -41,8 +41,8 @@ The default deployment does not require a managed cloud service.
│ HEIMDALL CENTRAL │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ API │ │ Web │ │ Workers │ │ MediaMTX / IA │ │
│ │ REST + │ │ Blazor │ │ Hangfire │ │ Ollama / RustFS │ │
│ │ API │ │ Web │ │ Workers │ │ MediaMTX │ │
│ │ REST + │ │ Blazor │ │ Hangfire │ │ RustFS │ │
│ │ SignalR │ │ MudBlazor│ │ Jobs │ │ Live media │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └──────────────────┘ │
│ │ │ │ │
@@ -213,7 +213,7 @@ services:
postgresql: # Base de données
rustfs: # Stockage S3 (enregistrements)
# Analyse ONNX exécutée par l'Agent (CPU par défaut, CUDA NVIDIA optionnel); voir docs/gpu-runtime.md
ollama: # LLM local (résumés)
ollama: # service optionnel; URL configurable et disponibilité sondée, aucune génération LLM livrée
mediamtx: # Serveur média RTSP/WHEP (optionnel, live vidéo)
coturn: # TURN relay (optionnel, double NAT)
```
+1
View File
@@ -9,6 +9,7 @@ Use this workflow when changing `Dockerfile` health checks, Central Compose heal
- Central and Agent containers probe `/healthz` on port 8080 (the development Agent may bind its host-mapped port). ASP.NET maps this route for `GET`; a `HEAD` request returns 405 and marks a live server unhealthy.
- When documenting health status, compare each summary with the registered check names/tags, endpoint filters, and HTTP status mapping in Web and Agent. Web `/healthz` is liveness (`200`), `/readyz` checks the `ready` PostgreSQL and selected-storage dependencies (`200` only when healthy, otherwise `503`), and `/health/live` selects the `live` PostgreSQL and optional configured AI backend check (`503` when degraded). Agent `/healthz` runs its registered checks (`Degraded` maps to `200`, `Unhealthy` to `503`); `/health/live` selects only the Agent pipeline-degradation check (`503` when degraded). Do not claim a Central broker health check unless one is registered.
- Ollama is optional; its URL can be configured in Central settings, the admin connectivity action can ping it, and `AiHealthCheck` probes `/api/tags`. That endpoint check proves availability only, not model inference or summary generation. Do not document LLM-generated summaries until a production caller for a model generation/chat API is implemented.
- In the Alpine image, use BusyBox `wget` with `-O /dev/null` to issue a GET and discard the body. Do not use `--spider`, because BusyBox implements it as HEAD.
- Apply this to both `docker/Dockerfile`/Central Compose and `docker/Dockerfile.agent`/Agent development Compose. Keep the image and Compose probes consistent, with bounded timeout/retries and no published health endpoint required.
- For acceptance, build the changed Central or Agent image from source under a project-unique tag in a unique Compose project with a generated `.env`, synthetic credentials, a loopback-only unused port, and project-scoped volumes/network. Install an EXIT cleanup trap before build/start. Verify a GET health probe succeeds and an equivalent HEAD receives the endpoint's 405; then confirm the changed service reports healthy. In cleanup remove only that project with `down --volumes --remove-orphans`, verify no labeled containers/volumes/networks remain, remove and inspect each exact local image tag even on failure, and retain shared base images. Preserve the test exit status and report cleanup failures.