Appendix F. Changing Nova Reserved Memory and CPU Allocation Manually
Creating a custom template to overwrite the reserved_host_memory_mb and cpu_allocation_ratio default values.
Prerequisites
- Deploy the Red Hat OpenStack Platform director (RHOSP-d), also known as the undercloud.
- Create a Directory for Custom Templates.
Procedure
Do the following steps on the RHOSP-d node, as the stack user.
Create the
compute.yamlfile in the custom templates directory:[stack@director ~]$ touch ~/custom-templates/compute.yaml
Open the
compute.yamlfile for editing.Add the
reserved_host_memoryandcpu_allocation_ratioconfiguration parameters to theExtraConfigsection, under the parameter defaults section:parameter_defaults: ExtraConfig: nova::compute::reserved_host_memory: $MEMORY_SIZE_IN_MB nova::cpu_allocation_ratio: $CPU_RATIO- Replace…
-
$MEMORY_SIZE_IN_MBwith the memory size in megabytes (MB). $CPU_RATIOwith the ratio decimal value.Example
nova::compute::reserved_host_memory: 75000 nova::cpu_allocation_ratio: 8.2NoteRed Hat OpenStack Platform director refers to the
reserved_host_memory_mbparameter used by Nova as thereserved_host_memoryparameter.
-

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.