Resource Configuration

October 3, 2018 ยท View on GitHub

Every job on InfraBox requires resource limits. So it can gurantee the resources to each job.

{
    "version": 1,
    "jobs": [{
        ...
        "resources": {
            "limits": {
                "cpu": 0.5,
                "memory": 1024
            },
        }
    }]
}
NameRequiredTypeDefaultDescription
cputruefloatSpecify the number of CPUs to be used for the job
memorytrueintegerSpecify the number of MiB of RAM to be used for the job. Value must be an integer and at least 128