How does nomad limit resource consumption for a task? If there are two tasks within a group that each have cpu = 100
, is there a shared pool of 200
that both tasks have access to? What happens if one of those tasks wants access to more CPU ticks?
job "docs" {
group "example" {
task "server" {
resources {
cpu = 100
memory = 256
}
}
task "greeter" {
resources {
cpu = 100
memory = 256
}
}
}
}
Looking at /client/allocation/:alloc_id/stats
, I see ThrottledPeriods, ThrottledTicks broken down for both resources
and tasks
-- will both resources and tasks throttle resource usage?