Parameter Reference
Quick reference for all available video processing parameters:| Parameter | Description |
|---|---|
VIDEO_MAX_CONCURRENT | Maximum concurrent video jobs |
VIDEO_JOB_RETRY_MAX | Maximum retry attempts |
VIDEO_JOB_CLEANUP_HOURS | Job cleanup time |
VIDEO_WORKER_POLL_INTERVAL_MS | Worker polling interval |
Core Parameters
Maximum number of video jobs processed simultaneously.Auto-detection:
- Automatically detected based on available RAM (1 worker per 2GB)
- Maximum: 16 workers
4- 4 concurrent jobs (default for 8GB RAM)8- 8 concurrent jobs (for 16GB RAM)2- 2 concurrent jobs (for resource-constrained environments)16- Maximum concurrent jobs
If not set, the system auto-detects based on available RAM. Manual configuration overrides auto-detection.
Maximum number of retry attempts for failed video jobs.Examples:
3- Default (3 retry attempts)5- More retries for unreliable networks1- Single retry for faster failure detection0- No retries (not recommended)
Each retry attempts to reprocess the failed video job. Failed jobs are cleaned up after the cleanup period.
Number of hours after which completed or failed jobs are cleaned up from the database.Examples:
24- Clean up after 1 day (default)48- Keep jobs for 2 days168- Keep jobs for 1 week1- Clean up after 1 hour (aggressive cleanup)
Interval in milliseconds at which the worker polls for new video jobs.Examples:
1000- Poll every 1 second (default)500- Poll every 500ms (faster job pickup)2000- Poll every 2 seconds (reduces CPU usage)5000- Poll every 5 seconds (lower resource usage)
Lower intervals provide faster job processing but increase CPU usage. Higher intervals reduce CPU but add latency.
Configuration Examples
- Development
- Production (High Performance)
- Resource Constrained
- Auto-Detection
Performance Considerations
Concurrency tuning
Balance
VIDEO_MAX_CONCURRENT with available CPU cores and RAM. Each worker uses significant resources.Retry strategy
Set
VIDEO_JOB_RETRY_MAX based on network reliability and job criticality.Cleanup frequency
Adjust
VIDEO_JOB_CLEANUP_HOURS to balance database size and debugging needs.Polling efficiency
Lower
VIDEO_WORKER_POLL_INTERVAL_MS for faster processing, higher for reduced CPU usage.