From 5f4a7c4cd6762ca21b8d58be7d13ef59904c2356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Tue, 17 Dec 2024 14:05:05 +0100 Subject: [PATCH] Refs #8140: MariaDB Server Deploy - Role WIP - Finishing tasks - Study mysqltuner.pl and check-memory --- roles/services/files/scripts/check-memory.sh | 2 +- roles/services/tasks/mariadb.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/services/files/scripts/check-memory.sh b/roles/services/files/scripts/check-memory.sh index cfb5938..d04ed75 100755 --- a/roles/services/files/scripts/check-memory.sh +++ b/roles/services/files/scripts/check-memory.sh @@ -1,6 +1,6 @@ #!/bin/bash -minFree=5 +minFree=1 memFree=$(free --gibi | awk '$1 == "Mem:" { print $7 }') if [ "$memFree" -le "$minFree" ]; then diff --git a/roles/services/tasks/mariadb.yml b/roles/services/tasks/mariadb.yml index 1f18ef7..9472247 100644 --- a/roles/services/tasks/mariadb.yml +++ b/roles/services/tasks/mariadb.yml @@ -1,3 +1,6 @@ +# Revisar /root/scripts/check-memory.sh --> No es óptimo hacer lo que hace ese programa +# Ver como lanzar el mysqltuner.pl + - name: Ensure Install requirements for MariaDB repository setup script apt: name: "{{ mariadb_requeriments }}"