Operate server and workers independently
hort separates request handling from background work so you can assign CPU, memory, and deployment capacity independently.
Responsibilities
| Component | Operational responsibility |
|---|---|
hort-server | Registry and administrative API, authentication, repository requests, configuration apply on startup |
hort-worker | Background work including scanning, prefetch, and retention tasks |
| Scanner processes | Trivy and osv-scanner can run as subprocesses started by the worker |
On native Linux, operate server and worker as separate services. In Kubernetes, deploy and resource them as separate workloads. The native worker executable does not bundle Trivy or osv-scanner; install and configure them separately when scanning is required. The worker container image includes these tools.
Set resource limits
- Establish baseline CPU, memory, and storage/cache usage under representative artifact and scan load.
- Set server and worker resource requests/limits separately. Leave headroom for scanner subprocesses and their peak memory usage.
- Give the worker access to required storage, database, queue/dependency services, and permitted upstream endpoints.
- Ensure scanner cache directories are writable and persistent where appropriate, especially for native Linux services.
- Increase worker capacity only after examining queue backlog, job duration, failures, and dependency bottlenecks.
Separate workloads permit independent scaling, not guaranteed automatic autoscaling or linear throughput gains. Test the chosen replica count with your storage and queue topology.
Verify the background processing path
- Check that
hort-workeris running and has loaded its configuration. - Trigger a permitted artifact operation that requires background work in a non-production repository.
- Observe worker logs and job state until completion or a visible failure.
- Confirm the client-visible result matches the configured policy; a healthy API alone does not prove scans are processing.
- In staging, restart a worker during a job and confirm recovery or retry behavior before relying on it operationally.
For native Linux, inspect systemctl status hort-worker and journalctl -u hort-worker. For Kubernetes, use the worker workload's pod status, logs and resource usage.
Related guides: Native Linux installation · Monitoring & troubleshooting · Scanning & governance.