Merge "[TRAIN and before] Introduce ContainerCpusetCpus" into stable/train

This commit is contained in:
Zuul 2020-03-14 06:12:32 +00:00 committed by Gerrit Code Review
commit e2a5d0768c
2 changed files with 15 additions and 1 deletions

View File

@ -225,6 +225,12 @@ parameters:
Override the compile time default TLS priority string.
type: string
default: 'NORMAL:-VERS-SSL3.0:-VERS-TLS-ALL:+VERS-TLS1.2'
ContainerCpusetCpus:
description: Limit the specific CPUs or cores a container can use.
type: string
default: 'all'
tags:
- role_specific
conditions:
@ -323,10 +329,12 @@ resources:
- map_replace:
- vhostuser_socket_group: VhostuserSocketGroup
nova::compute::libvirt::qemu::memory_backing_dir: QemuMemoryBackingDir
container_cpuset_cpus: ContainerCpusetCpus
- values: {get_param: [RoleParameters]}
- values:
VhostuserSocketGroup: {get_param: VhostuserSocketGroup}
QemuMemoryBackingDir: {get_param: QemuMemoryBackingDir}
ContainerCpusetCpus: {get_param: ContainerCpusetCpus}
ContainersCommon:
@ -680,7 +688,7 @@ outputs:
privileged: true
security_opt: label=disable
restart: always
cpuset_cpus: all
cpuset_cpus: {get_attr: [RoleParametersValue, value, container_cpuset_cpus]}
depends_on:
- tripleo_nova_virtlogd.service
healthcheck:

View File

@ -0,0 +1,6 @@
---
features:
- |
Add a role specific parameter, ContainerCpusetCpus, default to 'all', which
allows to limit the specific CPUs or cores a container can use.
To disable it and rely on container engine default, set it to ''.