Fill the build slice's limits as the mesh fills a module's template today (issue 1798)
mesh/merge-gate building on ace since 00:53
mesh/delivery superseded: a newer head of the same pull request
mesh/check failed: integration: github.com/novox/mesh-controller/internal/identity.TestACertificateChainsToTheMeshsOwnAuthority: authority_test.go:45:…
mesh/merge-gate building on ace since 00:53
mesh/delivery superseded: a newer head of the same pull request
mesh/check failed: integration: github.com/novox/mesh-controller/internal/identity.TestACertificateChainsToTheMeshsOwnAuthority: authority_test.go:45:…
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# 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}
|
||||
CPUWeight=${setting:cpu-weight}
|
||||
IOWeight=${setting:io-weight}
|
||||
MemoryHigh=${setting:memory-high}
|
||||
MemoryMax=${setting:memory-max}
|
||||
|
||||
@@ -211,7 +211,7 @@ func TestTheBuildSliceCarriesTheMachinesLimits(t *testing.T) {
|
||||
if c, ok := m.Config[key]; !ok || c.Default == nil {
|
||||
t.Errorf("1798/AC2: setting %s is missing or has no default", key)
|
||||
}
|
||||
if !strings.Contains(string(slice), property+"=${config:"+key+"}") {
|
||||
if !strings.Contains(string(slice), property+"=${setting:"+key+"}") {
|
||||
t.Errorf("1798/AC2: the slice does not set %s from %s", property, key)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
"type": "file",
|
||||
"path": "/etc/systemd/system/mesh-build.slice",
|
||||
"mode": "0644",
|
||||
"trusted": false,
|
||||
"template": "files/mesh-build.slice"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user