videogen/infra/k8s/base/worker-gpu-deployment.yaml
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

65 lines
2.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ReelForge GPU render worker — Celery worker consuming the render/generation/film
# queues. Scaled by KEDA on queue depth (see infra/gpu-autoscale/config.yaml) with
# scale-to-zero; the beat pod (separate) drives the render poll sweep.
apiVersion: apps/v1
kind: Deployment
metadata:
name: reelforge-worker-gpu
labels: { app: reelforge-worker-gpu, tier: worker }
spec:
replicas: 0 # KEDA drives this from queue depth × wallet-held budget
selector:
matchLabels: { app: reelforge-worker-gpu }
template:
metadata:
labels: { app: reelforge-worker-gpu, tier: worker }
spec:
runtimeClassName: nvidia
nodeSelector: { "nvidia.com/gpu.present": "true" }
tolerations:
- { key: "nvidia.com/gpu", operator: "Exists", effect: "NoSchedule" }
containers:
- name: worker
image: ghcr.io/reelforge/worker-gpu:latest
command: ["celery", "-A", "app.workers.celery_app", "worker",
"-Q", "render,generation,film,batch", "--concurrency=2"]
envFrom:
- secretRef: { name: reelforge-secrets }
resources:
requests: { cpu: "2", memory: "8Gi", "nvidia.com/gpu": "1" }
limits: { cpu: "4", memory: "16Gi", "nvidia.com/gpu": "1" }
terminationGracePeriodSeconds: 120 # drain in-flight renders before eviction
---
# KEDA ScaledObject: scale on every queue consumed by this worker, capped, with
# a cooldown so a burst doesn't thrash GPU nodes.
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: reelforge-worker-gpu
spec:
scaleTargetRef: { name: reelforge-worker-gpu }
minReplicaCount: 0
maxReplicaCount: 20
cooldownPeriod: 300
triggers:
- type: redis
metadata:
addressFromEnv: REDIS_URL
listName: render
listLength: "4"
- type: redis
metadata:
addressFromEnv: REDIS_URL
listName: generation
listLength: "1"
- type: redis
metadata:
addressFromEnv: REDIS_URL
listName: film
listLength: "1"
- type: redis
metadata:
addressFromEnv: REDIS_URL
listName: batch
listLength: "1"