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
|
# 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.
|
# is busy, so an idle machine still builds at full speed; the memory limits are the part that always binds.
|
||||||
[Slice]
|
[Slice]
|
||||||
CPUWeight=${config:cpu-weight}
|
CPUWeight=${setting:cpu-weight}
|
||||||
IOWeight=${config:io-weight}
|
IOWeight=${setting:io-weight}
|
||||||
MemoryHigh=${config:memory-high}
|
MemoryHigh=${setting:memory-high}
|
||||||
MemoryMax=${config:memory-max}
|
MemoryMax=${setting:memory-max}
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ func TestTheBuildSliceCarriesTheMachinesLimits(t *testing.T) {
|
|||||||
if c, ok := m.Config[key]; !ok || c.Default == nil {
|
if c, ok := m.Config[key]; !ok || c.Default == nil {
|
||||||
t.Errorf("1798/AC2: setting %s is missing or has no default", key)
|
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)
|
t.Errorf("1798/AC2: the slice does not set %s from %s", property, key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@
|
|||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "/etc/systemd/system/mesh-build.slice",
|
"path": "/etc/systemd/system/mesh-build.slice",
|
||||||
"mode": "0644",
|
"mode": "0644",
|
||||||
|
"trusted": false,
|
||||||
"template": "files/mesh-build.slice"
|
"template": "files/mesh-build.slice"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user