From fe0ba3b8830bb14ca479f0c43ea00b5b1fbedeb0 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Fri, 1 Mar 2019 22:53:26 +0100 Subject: [PATCH] Adjust default of ``ram-allocation-ratio`` configuration option In modern hyper-converged architectures the upstream default of 1.5 does not really fit. Set to 0.98 to give some headroom on the compute nodes and add a note about the potential need to adjust this value further. Change-Id: I64e3379686128dd7f222bdfae133a6c90e8f3ef0 Closes-Bug: #1818234 --- config.yaml | 6 +++++- tests/basic_deployment.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 3aefdb52..94e017b2 100644 --- a/config.yaml +++ b/config.yaml @@ -217,12 +217,16 @@ options: at the expense of instance performance. ram-allocation-ratio: type: float - default: 1.5 + default: 0.98 description: | The physical ram -> virtual ram ratio to use in the Nova scheduler. . Increasing this value will increase instance density on compute nodes at the potential expense of instance performance. + . + NOTE: When in a hyper-converged architecture, make sure to make enough + room for infrastructure services running on your compute hosts by + adjusting this value. disk-allocation-ratio: type: float default: 1.0 diff --git a/tests/basic_deployment.py b/tests/basic_deployment.py index 59d82415..e045872e 100644 --- a/tests/basic_deployment.py +++ b/tests/basic_deployment.py @@ -834,7 +834,7 @@ class NovaCCBasicDeployment(OpenStackAmuletDeployment): services['apache2'] = conf_file # Expected default and alternate values - flags_default = 'cpu-allocation-ratio=16.0,ram-allocation-ratio=1.5' + flags_default = 'cpu-allocation-ratio=16.0,ram-allocation-ratio=0.98' flags_alt = 'cpu-allocation-ratio=32.0,ram-allocation-ratio=3.0' set_default = {'config-flags': flags_default} set_alternate = {'config-flags': flags_alt}