Open
Description
Nomad version
[root@base-machine ~]# nomad version
Nomad v1.9.6
Operating system and Environment details
Plugin "nomad-usb-device" v0.4.0
OS: AlmaLinux 9.5
Issue
When you inspect a node, for devices will appear something like this:
[root@base-machine ~]# nomad node status 1f5a5301
Device Resource Utilization
0627/usb/0001[001-002-001-0627-0001] <none>
Even if the resource is in use, this is not shown. So it's not possible to know which resources are currently used. I know that allocations could be denied due to lack of resources, but cannot be tracked to the node level.
Reproduction steps
- install a device plugin (usb/nvidia)
- run a job with device block
- check node status
Expected Result
I expect to see which task uses the resources.
[root@base-machine ~]# nomad node status 1f5a5301
Device Resource Utilization
0627/usb/0001[001-002-001-0627-0001] <alloc_id>
Actual Result
It shows the device stats or none ( based on the device used ).
[root@base-machine ~]# nomad node status 1f5a5301
Device Resource Utilization
0627/usb/0001[001-002-001-0627-0001] <none>
Job file (if appropriate)
job "redis" {
datacenters = ["dc1"]
type = "service"
group "redis" {
network {
port "redis" { to = 6379 }
}
task "redis" {
driver = "podman"
config {
image = "docker://redis"
ports = ["redis"]
}
resources {
memory = 1024
cores = 2
device "0627/usb/0001" {}
}
}
}
}
Metadata
Metadata
Assignees
Type
Projects
Status
Triaging