Bug 1925201

Summary: [OCPonRHV] - High Performance Mode in OCP on RHV - CPU and Numa pinning configuration
Product: OpenShift Container Platform Reporter: michal <mgold>
Component: InstallerAssignee: Liran Rotenberg <lrotenbe>
Installer sub component: OpenShift on RHV QA Contact: michal <mgold>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: high CC: gzaidman, lleistne, mburman
Version: 4.7   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-14 10:14:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1941334    
Bug Blocks:    

Description michal 2021-02-04 15:12:11 UTC
Description of RFE:
When installing OCP using IPI through the configuration file, it's possible to set the vm_type to high performance.
Currently, this just aligns what we do by default in the UI.
We want to also to add CPUs/NUMAs pining by default to the VM, and make this feature configurable through the install config.
CPUs/NUMAs pining has 3 options:
- Disabled.
- Existing(Default) - takes the current CPU topology and pins it (no changes made to CPU).
- Adjust - changes the CPU topology to be the maximum available.

By default when a user creates a high-performance VM the VM will be created with "Existing" CPUs/NUMAs pining.
With using the install config the user will be able to specify Disabled|Existing|Adjust.

A side effect of CPUs/NUMAs pining is Host pining, this is something that is required from the RHV engine, whenever you specify CPUs/NUMAs pining you need to select Host pining.
Host pining can be set to a specific host in the cluster or to a group of hosts in the cluster.
We will set Host pining to all the hosts in the cluster, this is to not interfere with the Affinity Groups logic, and because we need Host pining just to make CPUs/NUMAs pining work.
This will mean that when a new host is added to the RHV cluster and we want VMs to be schedulable on that host, we must add that host to the VMs - this will need to be a part of the documentation

Comment 1 Gal Zaidman 2021-03-30 14:13:32 UTC
due to capacity constraints, we will be revisiting this bug in the upcoming sprint

Comment 2 Gal Zaidman 2021-04-14 10:14:36 UTC

*** This bug has been marked as a duplicate of bug 1925203 ***