The BuildCpu
app parameter allows you to specify the CPU request for build pods in millicores. This parameter enables you to control the amount of CPU resources allocated to build processes, allowing you to optimize build performance based on your application’s build requirements.
When used in conjunction with BuildMem
and BuildLabels
, this parameter provides fine-grained control over build resource allocation and placement.
By default, build pods use the standard CPU allocation defined at the rack level.
To set the CPU request for build pods:
$ convox apps params set BuildCpu=<value> -a <app>
Setting BuildCpu... OK
This configuration allocates 512 millicores (0.5 vCPU) to build pods for the specified application.
To view the current BuildCpu setting:
$ convox apps params -a <app>
NAME VALUE
BuildCpu 512
Sets the memory request for build pods:
$ convox apps params set BuildMem=2048 -a <app>
Setting BuildMem... OK
Directs build pods to specific node groups:
$ convox apps params set BuildLabels=convox.io/label=app-build -a <app>
Setting BuildLabels... OK
BuildCpu
value is specified in millicores, where 1000 millicores equals 1 vCPU.256
(0.25 vCPU): Suitable for simple builds512
(0.5 vCPU): Balanced for most builds1024
(1 vCPU): Good for moderately complex builds2048
(2 vCPU): Recommended for CPU-intensive buildsBuildCpu
and BuildMem
appropriately based on your application’s build requirements.additional_build_groups_config
, ensure the node groups have sufficient CPU capacity to accommodate your BuildCpu
settings.This feature is available in all recent versions of Convox.