Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
infrastructure:db:mariadb:cluster [26/12/2020 14:35] Stéphane Pailletinfrastructure:db:mariadb:cluster [02/05/2024 10:57] (Version actuelle) Stéphane Paillet
Ligne 1: Ligne 1:
 ====== Cluster MariaDB ======= ====== Cluster MariaDB =======
 +{{tag>DB "bases de données" MariaDB cluster Galera Haproxy}}
  
 ===== Infrastructure ===== ===== Infrastructure =====
Ligne 306: Ligne 306:
 wsrep_node_address='10.9.214.75' wsrep_node_address='10.9.214.75'
 wsrep_node_name='dbcl01-db03' wsrep_node_name='dbcl01-db03'
 +</code>
 +
 +Nous démarrons MariaDB
 +
 +<code>
 +sudo systemctl start mariadb
 </code> </code>
  
Ligne 417: Ligne 423:
 } }
  
-vrrp_script haproxy +vrrp_script chk_haproxy 
-        script "killall -haproxy"+        script "/usr/bin/systemctl is-active --quiet haproxy"
         interval 2         interval 2
         weight 2         weight 2
Ligne 438: Ligne 444:
         }         }
         track_script {         track_script {
-                haproxy+                chk_haproxy
         }         }
 } }
Ligne 449: Ligne 455:
 global_defs { global_defs {
         notification_email {         notification_email {
-                root@neotion.com+                root@example.com
         }         }
         notification_email_from lac-dbcl01-lb02-noreply@neotion.com         notification_email_from lac-dbcl01-lb02-noreply@neotion.com
-        smtp_server smtp.neotion.com+        smtp_server smtp.example.com
         smtp_connect_timeout 30         smtp_connect_timeout 30
         router_id lac-dbcl01-lb02         router_id lac-dbcl01-lb02
 } }
  
-vrrp_script haproxy +vrrp_script chk_haproxy 
-        script "killall -haproxy"+        script "/usr/bin/systemctl is-active --quiet haproxy"
         interval 2         interval 2
         weight 2         weight 2
Ligne 478: Ligne 484:
         }         }
         track_script {         track_script {
-                haproxy+                chk_haproxy
         }         }
 } }
  • infrastructure/db/mariadb/cluster.1608993324.txt.gz
  • Dernière modification : 26/12/2020 14:35
  • de Stéphane Paillet