feat: add GPU status logging with state tracking to prevent duplicate log messages and configure NVIDIA runtime in docker-compose
Add graphics_log_state global to track GPU query status and prevent duplicate log messages. Log warning with error_summary() when nvidia-smi is unavailable or returns non-zero exit code. Log info message when GPU status becomes available with GPU count and binary path. Track signature tuples for unavailable/failed/ok states including GPU index/name/temperature/utilization.
This commit is contained in:
1 parent
7d1987c4f4
commit
8c8e1be0db
2 files changed
+20
-1
No files matched your search
@@ -3,6 +3,7 @@ services:
|
||||
build: .
|
||||
container_name: media-max
|
||||
restart: unless-stopped
|
||||
gpus: all
|
||||
ports:
|
||||
- "8099:8099"
|
||||
devices:
|
||||
@@ -16,6 +17,9 @@ services:
|
||||
- "host.docker.internal:host-gateway"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES:-all}
|
||||
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES:-compute,utility}
|
||||
volumes:
|
||||
# Host-Pfad deiner Film-Library -> interner Dashboard-Pfad
|
||||
- ${FILM_MEDIA_VOLUME}:/media/filme:ro
|
||||
|
||||
Reference in new issue
Block a user