Enabled "tuned-profiles-cpu-partitioning" package for overcloud image

For DPDK deployments, the host machine has to be tuned for
better performance by isolating the CPUs. Tune-d's
cpu-partitioning profile takes care of isolating host processes
to the given set of CPUs only. Enabling the package in overcloud
image.
Closes-Bug: #1680866

Change-Id: Iba16092de850b6abfc1666b1dfa7b46d399820f2
(cherry picked from commit a2f93e840f)
This commit is contained in:
Saravanan KR 2017-01-10 16:24:28 +05:30
parent 47d59f4660
commit ea5c909e15
4 changed files with 28 additions and 1 deletions

View File

@ -12,3 +12,4 @@ nova_compute_package
ntp_package
openvswitch_ovn_compute_package
pacemaker_remote_package
tuned_profiles_cpu_partitioning_package

View File

@ -14,6 +14,7 @@
"nova_compute_package": "openstack-nova-compute",
"ntp_package": "ntp",
"openvswitch_ovn_compute_package": "openvswitch-ovn-host",
"pacemaker_remote_package": "pacemaker-remote"
"pacemaker_remote_package": "pacemaker-remote",
"tuned_profiles_cpu_partitioning_package": "tuned-profiles-cpu-partitioning"
}
}

View File

@ -0,0 +1,21 @@
#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [[ "$DISTRO_NAME" == *"centos"* ]]; then
# tuned-profiles-cpu-partitioning is installed in rhel via fast-datapath.
# for centos, "rt" repo is added temprovarily (later change to centos
# nfv repo )
cat << EOF > /etc/yum.repos.d/centos7-rt-tuned-only.repo
[centos7-rt-for-tuned-only]
name=centos rt
baseurl=http://mirror.centos.org/centos/7/rt/x86_64/
enabled=1
gpgcheck=0
includepkgs=tuned-profiles-cpu-partitioning
EOF
fi

View File

@ -0,0 +1,4 @@
---
features:
- Added tuned-profile-cpu-partitioning package from centos rt repo.
This package is essential for tuning hosts for NFV deployments.