mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
e2e: fixup oversubscription test case for jammy (#15347)
* e2e: fixup oversubscription test case for jammy jammy uses cgroups v2, need to lookup the max memory limit from the unified heirarchy format * e2e: set constraint to require cgroups v2 on oversub docker test
This commit is contained in:
8
e2e/oversubscription/testdata/docker.nomad
vendored
8
e2e/oversubscription/testdata/docker.nomad
vendored
@@ -7,6 +7,12 @@ job "oversubscription-docker" {
|
||||
value = "darwin,linux"
|
||||
}
|
||||
|
||||
constraint {
|
||||
attribute = "${attr.unique.cgroup.version}"
|
||||
operator = "="
|
||||
value = "v2"
|
||||
}
|
||||
|
||||
group "group" {
|
||||
task "task" {
|
||||
driver = "docker"
|
||||
@@ -14,7 +20,7 @@ job "oversubscription-docker" {
|
||||
config {
|
||||
image = "busybox:1.29.2"
|
||||
command = "/bin/sh"
|
||||
args = ["-c", "cat /sys/fs/cgroup/memory/memory.limit_in_bytes; sleep 1000"]
|
||||
args = ["-c", "cat /sys/fs/cgroup/memory.max; sleep 1000"]
|
||||
}
|
||||
|
||||
resources {
|
||||
|
||||
Reference in New Issue
Block a user