cncf / cnf-testbed

ARCHIVED: 🧪🛏️Cloud-native Network Function (CNF) Testbed --> See LFN Cloud Native Telecom Initiative https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
Apache License 2.0
164 stars 51 forks source link

Add dynamic CPU isolation to deployment tools (Ansible role) #336

Closed michaelspedersen closed 4 years ago

michaelspedersen commented 4 years ago

Based on discussion found here

PR avaialble here: cncf/cnf-testbed#337

Background:

Currently in CNF Testbed, only two CPUs are fully supported in the Ansible role that handles CPU isolation:

Goal:

Make CPU isolation through Ansible more dynamic than it currently is in CNF Testbed. The Ansible role should be able to add the necessary entries to the node GRUB configuration file, based on the CPU, number of sockets and if Hyperthreading is enabled.

In addition, it should be possible to specify the number of cores to isolate from the higher level Ansible playbook. If the configuration is not possible on a given node, a default (dynamic) configuration will be applied instead.

Tasks:

Acceptance Criteria

For the below criteria, the resulting isolation can be found by running cat /proc/cmdline on the target worker node(s).

taylor commented 4 years ago

@michaelspedersen can you add acceptance criteria for other folks to test this? Eg. https://github.com/cncf/cnf-testbed/issues/330#issuecomment-582503273

michaelspedersen commented 4 years ago

Added ACs above