The BuildMem
app parameter allows you to specify the memory request for build pods in megabytes. This parameter enables you to control the amount of memory resources allocated to build processes, helping you optimize build performance and prevent out-of-memory errors during complex builds.
When used in conjunction with BuildCpu
and BuildLabels
, this parameter provides comprehensive control over build resource allocation and placement.
By default, build pods use the standard memory allocation defined at the rack level.
To set the memory request for build pods:
$ convox apps params set BuildMem=2048 -a <app>
Setting BuildMem... OK
This configuration allocates 2048MB (2GB) of memory to build pods for the specified application.
To view the current BuildMem setting:
$ convox apps params -a <app>
NAME VALUE
BuildMem 2048
Sets the CPU request for build pods:
$ convox apps params set BuildCpu=512 -a <app>
Setting BuildCpu... OK
Directs build pods to specific node groups:
$ convox apps params set BuildLabels=convox.io/label=app-build -a <app>
Setting BuildLabels... OK
BuildMem
value is specified in megabytes (MB).512
: Suitable for simple builds1024
(1GB): Balanced for most builds2048
(2GB): Good for builds with moderate dependencies4096
(4GB): Recommended for memory-intensive builds8192
(8GB): For very large or complex buildsBuildMem
and BuildCpu
appropriately based on your application’s build requirements.additional_build_groups_config
, ensure the node groups have sufficient memory capacity to accommodate your BuildMem
settings.This feature is available in all recent versions of Convox.