Skip to content

Commit

Permalink
lxd/devices: Add check for limits.cpu.pin_strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Sep 26, 2024
1 parent c0225d8 commit bc4de3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxd/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ func deviceTaskBalance(s *state.State) {
balancedInstances := map[instance.Instance]int{}
for _, c := range instances {
conf := c.ExpandedConfig()
if c.Type() == instancetype.VM && conf["limits.cpu.pin_strategy"] == "none" {
continue
}

cpuNodes := conf["limits.cpu.nodes"]
var numaCpus []int64
if cpuNodes != "" {
Expand Down

0 comments on commit bc4de3b

Please sign in to comment.