CPU Affinity configuration for LXD
Bug #1747457 reported by
Alvaro Uria
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Juju 2.3
LXD 2.0.11-
Use case: pcpu separation between Host processes and nova-compute ones
Sample: 56 pcpus
1) On Host, /etc/systemd/
"""
[Manager]
CPUAffinity=0 1 26 27 28 29 54 55
"""
2) juju config nova-compute vcpu-pin-
If we use Juju1+LXC (old deploys), nothing else needs to be set.
However, Juju2+LXD requires all containers to have the following setting:
lxc config set CONTAINER limits.cpu 0-1,26-29,54-55
What would be the best way to set this value via Juju? Would it be possible to add a "model-config" parameter that affects any LXD deployed within the model?
To post a comment you must log in.
This is not something that we have plans to address immediately. It may be addressed at the time when we do more comprehensive work on inheriting container properties.