diff options
author | Tim Rozet <trozet@redhat.com> | 2017-02-20 12:38:54 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-02-22 18:53:51 +0000 |
commit | 1ef3c3600d5b1692f65a445cf9e1c2e10a46314e (patch) | |
tree | 82fb89b104482c842c89b9805f4bcb0cbdf5e134 /ci | |
parent | e1a633529c06a63f9c710317f25e63b8bd574812 (diff) |
Allows for specifying compute node RAM
Currently we allow specifying ram per Overcloud VM. If the node is
detected as ODL, we bump the RAM to a minimum of 10GB. There is a need
to be able to specify the RAM per compute node in cases where we need
controller RAM to be high, but want compute nodes to be low (like CSIT)
- in order to keep the memory footprint as small as possible.
Changes Include:
- Adds '--virtual-compute-ram' argument that will override the
'--virtual-ram' param for compute nodes
- Fixes a bug where if ODL is used and RAM is overridden to 10GB for
Control nodes, it was also accidentally being set for compute nodes
- Modifies '--virtual-ram' to be '--virtual-default-ram' in order to
clarify this parameter sets the default amount of RAM for all
overcloud nodes which may be overridden by a role specific arg
Change-Id: Ia36082aa2167d9897f3ec6753d08804352301c63
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/deploy.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index b55f47ee..4df2d6a8 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -103,7 +103,8 @@ display_usage() { echo -e " --debug : enable debug output." echo -e " --interactive : enable interactive deployment mode which requires user to confirm steps of deployment." echo -e " --virtual-cpus : Number of CPUs to use per Overcloud VM in a virtual deployment (defaults to 4)." - echo -e " --virtual-ram : Amount of RAM to use per Overcloud VM in GB (defaults to 8)." + echo -e " --virtual-default-ram : Amount of default RAM to use per Overcloud VM in GB (defaults to 8)." + echo -e " --virtual-compute-ram : Amount of RAM to use per Overcloud Compute VM in GB (defaults to 8). Overrides --virtual-default-ram arg for computes" } ##translates the command line parameters into variables @@ -174,9 +175,9 @@ parse_cmdline() { echo "Number of CPUs per VM set to $VM_CPUS" shift 2 ;; - --virtual-ram ) + --virtual-default-ram ) VM_RAM=$2 - echo "Amount of RAM per VM set to $VM_RAM" + echo "Amount of Default RAM per VM set to $VM_RAM" shift 2 ;; --virtual-computes ) @@ -184,6 +185,11 @@ parse_cmdline() { echo "Virtual Compute nodes set to $VM_COMPUTES" shift 2 ;; + --virtual-compute-ram ) + VM_COMPUTE_RAM=$2 + echo "Virtual Compute RAM set to $VM_COMPUTE_RAM" + shift 2 + ;; *) display_usage exit 1 |