Release Redview 2.5.0: host worker budgets and GPU preference #19
Loading…
Reference in a new issue
No description provided.
Delete branch "release/2.5.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Release 2.5.0 adds host-wide CPU/GPU and per-kind job limits, worker kind eligibility, and preferred GPU hosts with live-capacity fallback. Tagging and vectorization share a default cap of one GPU job per host. Embedding can overlap compatible rip/tag/purge/discovery work; scans, moves and destructive deduplication retain exclusion. Capacity checks and claims are atomic across local and remote workers, and indexed lookups avoid scanning job history.
The user explicitly accepted MR18 and authorised completing this stable release. Cut from merged dev through validated 2.5.0-rc.1; scope and retained limits are in acceptance/release-2.5.0.md. Both candidate and final stable CPU/NVIDIA package builds and install checks passed, with all 206 Node tests and 60 Python tests. Both NixOS module evaluations and candidate CI passed. Required final release checks/review must pass before merging.
Publication does not activate hosts or configure Nova/Lyra policy. Upgrade all workers before relying on caps and restart a host's workers together for policy changes. Resident encoder memory needs separate sizing; sustained throughput and post-reboot deployment acceptance remain operator-owned. The ongoing nixos-config flake update is untouched; a later Redview input refresh is the user's choice.
Automated code review
Reviewed commit:
5b97e40ac92b7fd967d4b1140226fd044ae34c79Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
This release introduces host-wide CPU/GPU job budgets, per-kind limits, and GPU preference with fallback. The implementation adds a
worker_presencetable for live capacity tracking, enforces atomic claim transactions to prevent budget overruns across local/remote workers, and indexes the running-job lookup to avoid scanning historical data. Documentation and NixOS modules are updated to expose these policies.Blocking findings
None.
Important findings
None.
Suggestions
Hardcoded GPU default in policy parsing (src/worker-policy.ts:45; high confidence)
The
parseWorkerPolicyfunction defaultsmaxGpuJobsto1if not provided:Object.fromEntries(Object.entries({ maxGpuJobs: 1, ...policy })...). This is a significant operational default that should be clearly documented in the NixOS module description and environment variable help.Impact: Operators may inadvertently restrict GPU workloads to one job per host if they do not explicitly configure
maxGpuJobs, potentially impacting throughput on multi-GPU systems.Suggested fix: Add explicit documentation in
worker-policy-options.nixandREMOTE-WORKERS.mdhighlighting the default of 1, and consider making it configurable via a separate environment variable or Nix option if flexibility is needed.Presence TTL configuration (src/worker-policy.ts:7; medium confidence)
PRESENCE_TTL_MSis hardcoded to30_000. This value determines how quickly a host is considered dead if it stops sending heartbeats.Impact: A fixed TTL may not suit all network environments. High-latency networks might cause false positives, while low-latency networks might tolerate faster detection.
Suggested fix: Consider making
PRESENCE_TTL_MSconfigurable via an environment variable or Nix option to allow tuning based on deployment characteristics.Remote worker policy validation (src/remote-worker-thread.ts:23; medium confidence)
The remote worker thread parses the policy from
REVIEW_V2_WORKER_POLICYbut does not validate it against the server's schema or version before starting. If a remote worker has an older version of the code, it might send a policy format that the server does not understand.Impact: Potential for silent failures or unexpected behavior if policy formats diverge between client and server versions.
Suggested fix: Add a handshake or validation step where the server rejects connections from workers with incompatible policy schemas.
Tests and validation
Questions
worker_presencerows from previous deployments if the schema changes again in the future?Review limitations
worker_presencetable under high concurrency was not measured.REVIEW_V2_WORKER_POLICYenvironment variable (e.g., injection risks) were not analyzed in depth.Diff coverage
CHANGELOG.md: reviewed — included in a context-limited batchREMOTE-WORKERS.md: reviewed — included in a context-limited batchREQUIREMENTS-TRACE.md: reviewed — included in a context-limited batchREQUIREMENTS.md: reviewed — included in a context-limited batchVERSION: reviewed — included in a context-limited batchacceptance/release-2.5.0.md: reviewed — included in a context-limited batchnix/redview-v2.nix: reviewed — included in a context-limited batchnix/remote-worker.nix: reviewed — included in a context-limited batchnix/tests/remote-worker-module.nix: reviewed — included in a context-limited batchnix/tests/v2-module.nix: reviewed — included in a context-limited batchnix/worker-policy-options.nix: reviewed — included in a context-limited batchpackage.json: reviewed — included in a context-limited batchschema.sql: reviewed — included in a context-limited batchsrc/remote-worker-thread.ts: reviewed — included in a context-limited batchsrc/schema-upgrade.ts: reviewed — included in a context-limited batchsrc/worker-policy.ts: reviewed — included in a context-limited batchsrc/worker.ts: reviewed — included in a context-limited batchtests/host-worker-policy.test.mjs: reviewed — included in a context-limited batchtests/remote-worker.test.mjs: reviewed — included in a context-limited batchtests/schema-guard.test.mjs: reviewed — included in a context-limited batchtests/visual-job-concurrency.test.mjs: reviewed — included in a context-limited batchReview metadata