From 1f33b08857699b1d01aebd5c3783fa422295a0ff Mon Sep 17 00:00:00 2001 From: emorino Date: Thu, 2 Feb 2023 11:53:05 +0100 Subject: [PATCH] transformation des balise code de la conf json en syntaxe json --- HowtoMySQL/Orchestrator.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/HowtoMySQL/Orchestrator.md b/HowtoMySQL/Orchestrator.md index 60508038..09793a0f 100644 --- a/HowtoMySQL/Orchestrator.md +++ b/HowtoMySQL/Orchestrator.md @@ -54,14 +54,14 @@ cp /usr/local/orchestrator/orchestrator-sample.conf.json /etc/orchestrator.conf. Editer les variables suivante dans le fichier `/etc/orchestrator.conf.json`, pour configurer le backend d'Orchestrator vers l'instance MariaDB : -~~~ -... +~~~json +{ "MySQLOrchestratorHost": "127.0.0.1", "MySQLOrchestratorPort": 3306, "MySQLOrchestratorDatabase": "orchestrator", "MySQLOrchestratorUser": "orchestrator", "MySQLOrchestratorPassword": "password", -... +} ~~~ ### Configuration d'Ochestrator vers vos serveurs MariaDB @@ -81,9 +81,11 @@ GRANT SELECT ON performance_schema.replication_group_members TO 'orchestrator_cl On configure le fichier `/etc/orchestrator.conf.json` avec les variables suivantes pour indiquer l'utilisateur `orchestrator_client` : -~~~ +~~~json +{ "MySQLTopologyUser": "orchestrator_client", "MySQLTopologyPassword": "password", +} ~~~ Ensuite on peux démarrer Orchestrator comme ceci : @@ -96,7 +98,7 @@ Ensuite on peux démarrer Orchestrator comme ceci : Si on veux que orchestrator fasse la découverte des serveurs SQL avec la résolution de nom on peut mettre cette configuration dans `/etc/orchestrator.conf.json` : -~~~ +~~~json { "HostnameResolveMethod": "default", "MySQLHostnameResolveMethod": "@@hostname", @@ -109,7 +111,7 @@ Orchestrator peut classer les serveurs en fontion du nom du cluster, du datacent Voici la configuration qu'on mets par défaut : -~~~ +~~~json { "ReplicationLagQuery": "", "DetectClusterAliasQuery": "select ifnull(max(cluster_name), '') as cluster_alias from meta.cluster where anchor=1", @@ -177,7 +179,7 @@ Considérez également que vos topologies MySQL elles-mêmes doivent suivre cert Voici la configuration de base pour la détection de panne : -~~~ +~~~json { "RecoveryPeriodBlockSeconds": 3600, "RecoveryIgnoreHostnameFilters": [],