From acc7de5839ec6b857a67cc853340177e57f9e9bf Mon Sep 17 00:00:00 2001 From: Bruno Tatu Date: Thu, 13 Apr 2023 16:58:09 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9placement=20du=20block=20sur=20le=20muni?= =?UTF-8?q?n=20de=20mysql=20replication=20dans=20le=20hostomunin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMunin.md | 11 ++++++++++- HowtoMySQL/Replication.md | 9 --------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HowtoMunin.md b/HowtoMunin.md index 897afca0..08acae5b 100644 --- a/HowtoMunin.md +++ b/HowtoMunin.md @@ -471,6 +471,15 @@ Pour tester le bon fonctionnement des plugins MySQL pour Munin : Si on a plusieurs instances MySQL sur un serveur, il est possible d'[utiliser plusieurs fois un pluing Munin](https://wiki.evolix.org/HowtoMunin#utiliser-plusieurs-fois-un-plugin). +### Réplication + +On recommande d'activer ceux-ci : + +~~~ +ln -s '/usr/share/munin/plugins/mysql_' '/etc/munin/plugins/mysql_bin_relay_log' +ln -s '/usr/share/munin/plugins/mysql_' '/etc/munin/plugins/mysql_replication' +~~~ + ## Le plugin dnsresponsetime Il faut éditer le fichier `/etc/munin/plugin-conf.d/munin-node` et ajouter la section du plugin pour spécifier un nom à résoudre et un ou des serveurs DNS : @@ -492,7 +501,7 @@ env.querystats /var/chroot-bind/var/cache/bind/named.stats Assurez-vous d'avoir configuré le fichier `named.stats`, voir [HowtoBind#Graphsdesstatsviarndc]. -### Le plugin bind +## Le plugin bind Assurez-vous d'avoir configurer un « channel de log » pour les requêtes DNS. Cf. [HowtoBind#Graphsdesacc%C3%A8sviaunfichierdelog]. diff --git a/HowtoMySQL/Replication.md b/HowtoMySQL/Replication.md index d62b4896..d022824b 100644 --- a/HowtoMySQL/Replication.md +++ b/HowtoMySQL/Replication.md @@ -291,15 +291,6 @@ Il faut pour cela donner les droits "REPLICATION CLIENT" a l'utilisateur MySQL n GRANT REPLICATION CLIENT on *.* TO 'nrpe'@'localhost' IDENTIFIED BY 'PASSWORD'; ~~~ -### Munin - -Il est aussi intéressant d'ajouter certains graphes à munin pour suivre la application dans le temps. - -~~~ -ln -s '/usr/share/munin/plugins/mysql_' '/etc/munin/plugins/mysql_bin_relay_log' -ln -s '/usr/share/munin/plugins/mysql_' '/etc/munin/plugins/mysql_replication' -~~~ - ### pt-heartbeat Dans le paquet `perconal-toolkit` on trouvera un outil pour mesurer la latence dans la réplication d'une meilleure façon que nativement.