Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3766251
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/paas-docker/init.sls b/roles/paas-docker/init.sls
index ea9eafe..7740e45 100644
--- a/roles/paas-docker/init.sls
+++ b/roles/paas-docker/init.sls
@@ -1,18 +1,19 @@
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-09-13
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
include:
+ - .kernel
- .salt
- .docker
- .zemke-rhyne
- .containers
- .systemd-unit
- .wwwroot-502
- .nginx
- .letsencrypt
- .wrappers
diff --git a/roles/paas-docker/kernel/files/tuned.conf b/roles/paas-docker/kernel/files/tuned.conf
new file mode 100644
index 0000000..363ce9c
--- /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
index 0000000..8347b33
--- /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
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 24, 17:18 (25 m, 2 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258518
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment