Page MenuHomeDevCentral

D1999.id5047.diff
No OneTemporary

D1999.id5047.diff

diff --git a/roles/paas-docker/init.sls b/roles/paas-docker/init.sls
--- a/roles/paas-docker/init.sls
+++ b/roles/paas-docker/init.sls
@@ -7,6 +7,7 @@
# -------------------------------------------------------------
include:
+ - .kernel
- .salt
- .docker
- .zemke-rhyne
diff --git a/roles/paas-docker/kernel/files/tuned.conf b/roles/paas-docker/kernel/files/tuned.conf
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/kernel/files/tuned.conf
@@ -0,0 +1,33 @@
+# -------------------------------------------------------------
+# PaaS Docker
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-11-10
+# License: Trivial work, not eligible to copyright
+# Source file: roles/paas-docker/kernel/files/tuned.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+# -------------------------------------------------------------
+# Default settings
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+[main]
+include=virtual-guest
+
+# -------------------------------------------------------------
+# Database settings
+#
+# References:
+# - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/performance_tuning_guide/s-memory-transhuge
+# Transparent huge pages aren't suitable for databases
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+[vm]
+transparent_hugepages=never
diff --git a/roles/paas-docker/kernel/init.sls b/roles/paas-docker/kernel/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/kernel/init.sls
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-11-10
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os_family'] == 'RedHat' %}
+
+/etc/tuned/paas-docker:
+ file.directory
+
+/etc/tuned/paas-docker/tuned.conf:
+ file.managed:
+ - source: salt://roles/paas-docker/kernel/files/tuned.conf
+
+apply_paas_docker_tuned_configuration:
+ cmd.run:
+ - name: tuned-adm profile paas-docker
+ - onchanges:
+ - file: /etc/tuned/paas-docker/tuned.conf
+
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 18:22 (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267174
Default Alt Text
D1999.id5047.diff (2 KB)

Event Timeline