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 26, 2024
1 parent bc4de3b commit ab52340
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.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 ab52340

Please sign in to comment.