Run builds and checks in a per-node build slice with CPU, IO and memory limits (issue 1798)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Managed by the mesh (module build-agent). Replaced on every push; edit the module's settings instead.
|
||||
#
|
||||
# Everything a build or check starts on this machine runs in this slice (novox/hq issue 1798): the build
|
||||
# agent starts every container with --cgroup-parent=mesh-build.slice. The weights only bind while the machine
|
||||
# is busy, so an idle machine still builds at full speed; the memory limits are the part that always binds.
|
||||
[Slice]
|
||||
CPUWeight=${config:cpu-weight}
|
||||
IOWeight=${config:io-weight}
|
||||
MemoryHigh=${config:memory-high}
|
||||
MemoryMax=${config:memory-max}
|
||||
Reference in New Issue
Block a user