Shishir Mahajan 37b6743001 Add support for cpuset_cpus and cpuset_mems
Signed-off-by: Shishir Mahajan <smahajan@roblox.com>
2023-12-23 10:17:17 +00:00

25 lines
445 B
HCL

job "redis" {
datacenters = ["dc1"]
group "redis-group" {
task "redis-task" {
driver = "containerd-driver"
config {
image = "redis:alpine"
hostname = "foobar"
seccomp = true
cwd = "/home/redis"
cpuset_cpus = "0-1"
cpuset_mems = "0"
}
resources {
cpu = 500
memory = 256
memory_max = 512
}
}
}
}