Skip to content

Commit

Permalink
lxd/instance: Add default setting 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 27, 2024
1 parent 0bf923c commit 45341ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxd/instance/instance_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@ func CreateInternal(s *state.State, args db.InstanceArgs, clearLogDir bool) (Ins

args.Config["volatile.uuid.generation"] = args.Config["volatile.uuid"]

if args.Type == instancetype.VM && args.Config["limits.cpu.pin_strategy"] == "" {
args.Config["limits.cpu.pin_strategy"] = "none"
}

if args.Devices == nil {
args.Devices = deviceConfig.Devices{}
}
Expand Down

0 comments on commit 45341ef

Please sign in to comment.