Refs #8140: MariaDB Server Deploy - Role WIP - Finishing tasks - Study mysqltuner.pl and check-memory

This commit is contained in:
Xavi Lleó 2024-12-17 14:05:05 +01:00
parent 5cac63b6f0
commit 5f4a7c4cd6
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
minFree=5
minFree=1
memFree=$(free --gibi | awk '$1 == "Mem:" { print $7 }')
if [ "$memFree" -le "$minFree" ]; then

View File

@ -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 }}"