Resource Constraints
Configure CPU, memory, disk, and GPU requirements for your Bacalhau jobs to ensure efficient resource utilization.
CPU & Memory
Specify CPU cores and memory allocation for your jobs. Default values are CPU: 500m and Memory: 512Mb.
GPU Requirements
Request GPU resources for machine learning, deep learning, and other GPU-accelerated tasks.
Note: The compute node must have available GPUs with proper drivers, and your container image should include necessary GPU libraries (e.g., CUDA).
To select specific GPU types, use label selectors:
Disk Space
Control how much disk space your job can use:
Common Issues
Job Stuck Pending: You may be requesting resources that aren't available. Check available resources with
bacalhau node list
or reduce requirements.Out of Memory (OOM): Increase memory allocation or process data in smaller batches.
Disk Space Issues: Increase disk allocation or clean up temporary files during processing.
Best Practices
Start with conservative resource requests and scale up as needed
For memory-intensive tasks, add a 20-30% buffer to your estimated peak usage
Check if your framework can effectively use multiple GPUs before requesting them
Last updated
Was this helpful?