feat(blender-run): fixed container hostname fv-ml1-blender, so gethostname() is stable provenance

This commit is contained in:
vh
2026-09-28 14:00:07 -07:00
parent 59d436cc55
commit 5e6a6f3b26
+5 -2
View File
@@ -30,6 +30,9 @@
# per distinct DIR (small files, on /tank). Without --job, the only paths Blender sees are under # per distinct DIR (small files, on /tank). Without --job, the only paths Blender sees are under
# /work (= fv-ml1:/tank/blender). # /work (= fv-ml1:/tank/blender).
# #
# The container's hostname is fixed as fv-ml1-blender, so socket.gethostname() is stable across
# runs (callers record it as provenance; draupnir, 2026-09-28). Without it, it is the container id.
#
# Budget: GPU 3 (96 GB, borrowed from the vLLM reserve: this ends if a full-size seat moves in). # Budget: GPU 3 (96 GB, borrowed from the vLLM reserve: this ends if a full-size seat moves in).
# The container is capped at 64 GB RAM / 48 CPUs so a runaway render cannot starve the inference # The container is capped at 64 GB RAM / 48 CPUs so a runaway render cannot starve the inference
# seats on the same host. # seats on the same host.
@@ -49,7 +52,7 @@ while [ $# -gt 0 ]; do
--mount type=bind,src=/opt/docker/conf/blender/scripts/startup/fleet_extensions.py,dst=/fleet/fleet_extensions.py,readonly" --mount type=bind,src=/opt/docker/conf/blender/scripts/startup/fleet_extensions.py,dst=/fleet/fleet_extensions.py,readonly"
shift ;; shift ;;
--) shift; break ;; --) shift; break ;;
-h|--help) sed -n 2,35p "$0"; exit 0 ;; -h|--help) sed -n 2,38p "$0"; exit 0 ;;
*) echo "blender-run: unknown option $1 (blender args go after --)" >&2; exit 2 ;; *) echo "blender-run: unknown option $1 (blender args go after --)" >&2; exit 2 ;;
esac esac
done done
@@ -76,7 +79,7 @@ PRE=""
[ -n "$EXT" ] && PRE="--python /fleet/fleet_extensions.py" [ -n "$EXT" ] && PRE="--python /fleet/fleet_extensions.py"
set +e set +e
ssh -n -o BatchMode=yes "$HOST" "IMG=\$(grep '^IMAGE=' $ENV_FILE | cut -d= -f2) && \ ssh -n -o BatchMode=yes "$HOST" "IMG=\$(grep '^IMAGE=' $ENV_FILE | cut -d= -f2) && \
exec docker run --rm --name blender-run-\$\$ --runtime nvidia \ exec docker run --rm --name blender-run-\$\$ --hostname fv-ml1-blender --runtime nvidia \
-e NVIDIA_VISIBLE_DEVICES=3 -e NVIDIA_DRIVER_CAPABILITIES=all \ -e NVIDIA_VISIBLE_DEVICES=3 -e NVIDIA_DRIVER_CAPABILITIES=all \
--user 1002:1003 -e HOME=/tmp -e USER=infra-ops -e LOGNAME=infra-ops --memory 64g --cpus 48 \ --user 1002:1003 -e HOME=/tmp -e USER=infra-ops -e LOGNAME=infra-ops --memory 64g --cpus 48 \
-v /tank/blender:/work $EXT -w $WORKDIR --entrypoint /blender/blender \"\$IMG\" \ -v /tank/blender:/work $EXT -w $WORKDIR --entrypoint /blender/blender \"\$IMG\" \