Rechercher dans le manuel MySQL
17.2.3.3 Startup Options and Replication Channels
This section describes startup options which are impacted by the addition of replication channels.
The following startup options must be configured correctly to use multi-source replication.
This must be set to
TABLE
. If this option is set toFILE
, attempting to add more sources to a slave fails withER_SLAVE_NEW_CHANNEL_WRONG_REPOSITORY
. TheFILE
setting is now deprecated, andTABLE
is the default.--master-info-repository
This must be set to
TABLE
. If this option is set toFILE
, attempting to add more sources to a slave fails withER_SLAVE_NEW_CHANNEL_WRONG_REPOSITORY
. TheFILE
setting is now deprecated, andTABLE
is the default.
The following startup options now affect all channels in a replication topology.
All transactions received by the slave (even from multiple sources) are written in the binary log.
When set, each channel purges its own relay log automatically.
The specified number of transaction retries can take place on all applier threads of all channels.
No replication threads start on any channels.
Execution continues and errors are skipped for all channels.
The values set for the following startup options apply on each channel; since these are mysqld startup options, they are applied on every channel.
--max-relay-log-size=
size
Maximum size of the individual relay log file for each channel; after reaching this limit, the file is rotated.
--relay-log-space-limit=
size
Upper limit for the total size of all relay logs combined, for each individual channel. For
N
channels, the combined size of these logs is limited torelay_log_space_limit *
.N
--slave-parallel-workers=
value
Number of slave parallel workers per channel.
--slave-checkpoint-group
Waiting time by an I/O thread for each source.
--relay-log-index=filename
Base name for each channel's relay log index file. See Section 17.2.3.4, “Replication Channel Naming Conventions”.
--relay-log=filename
Denotes the base name of each channel's relay log file. See Section 17.2.3.4, “Replication Channel Naming Conventions”.
--slave_net-timeout=N
This value is set per channel, so that each channel waits for
N
seconds to check for a broken connection.--slave-skip-counter=N
This value is set per channel, so that each channel skips
N
events from its master.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-channels-startup-options.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.