informatique:sgbd:mysql:replication
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:sgbd:mysql:replication [13/01/2022 08:02] – [mysql replication] cyrille | informatique:sgbd:mysql:replication [21/01/2022 10:09] (Version actuelle) – [mysql replication] cyrille | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| Wording / Vocabulaire : **master & slave -> primary & replica**. | Wording / Vocabulaire : **master & slave -> primary & replica**. | ||
| + | |||
| + | * mariadb.com/ | ||
| + | * [[https:// | ||
| Voir [[/ | Voir [[/ | ||
| - | ===== Quelques | + | ===== Quelques |
| * [[https:// | * [[https:// | ||
| - | * max_binlog_size : default = 1GB | + | |
| + | * Définissez **expire_logs_days** plus long que tout décalage possible du replica. | ||
| + | | ||
| * [[https:// | * [[https:// | ||
| - | * max_relay_log_size : default = 0 | + | |
| - | + | ||
| + | [[https:// | ||
| + | |||
| + | To be sure replication is not broken while deleting log files, perform the following steps: | ||
| + | |||
| + | * Get a listing of binary log files on the primary by running **SHOW BINARY LOGS**. | ||
| + | * Go to each replica server and run **SHOW SLAVE STATUS** to check which binary log file each replica is currently reading. | ||
| + | * Find the earliest log file still being read by a replica. No log files before this one will be needed. | ||
| + | * If you wish, make a backup of the log files to be deleted | ||
| + | * Purge all log files before (not including) the file identified above. | ||
| ===== Essais de réplication ===== | ===== Essais de réplication ===== | ||
informatique/sgbd/mysql/replication.1642057376.txt.gz · Dernière modification : de cyrille
