Add ability to enable huge pages
Related-Prod: https://mirantis.jira.com/browse/PRODX-8500
Change-Id: I258489da117ba1cc4820c92dbcf77ccd5d33bee9
diff --git a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
index 406e896..1af557e 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
@@ -91,6 +91,12 @@
# Don't mount ephemeral0 to /mnt as it's by default
mounts:
- [ ephemeral0, null ]
+ huge_pages:
+ description: >
+ String formatted as '<Number of Gb for 1Gb huge pages>,<Number of Mb for 2Mb huge pages'
+ If number is equal to 0 alloacation of huge pages won't be configured.
+ default: '0,0'
+ type: string
conditions:
create_tf_data_network_res:
@@ -128,6 +134,7 @@
$ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
$ironic_baremetal_tunnel_cidr: { get_param: ironic_baremetal_tunnel_cidr }
$ironic_mt_enabled: { get_param: ironic_mt_enabled }
+ $huge_pages: { get_param: huge_pages }
inject_files:
type: "OS::Heat::CloudConfig"