This section describes startup options which are impacted by the addition of replication channels.
The master_info_repository and
relay_log_info_repository system
variables must not be set to
FILE when you use replication channels. In
MySQL 8.0, the FILE setting is deprecated, and
TABLE is the default, so the system variables
can be omitted. From MySQL 8.0.23, they must be omitted because
their use is deprecated from that release. If these system
variables are set to FILE, attempting to add
more sources to a replica fails with
ER_REPLICA_NEW_CHANNEL_WRONG_REPOSITORY.
The following startup options now affect all channels in a replication topology.
--log-replica-updatesor--log-slave-updatesAll transactions received by the replica (even from multiple sources) are written in the binary log.
When set, each channel purges its own relay log automatically.
--replica-transaction-retriesor--slave-transaction-retriesThe specified number of transaction retries can take place on all applier threads of all channels.
--skip-replica-startor--skip-slave-start(orskip_replica_startorskip_slave_startsystem variable set)No replication threads start on any channels.
--replica-skip-errorsor--slave-skip-errorsExecution 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=sizeMaximum size of the individual relay log file for each channel; after reaching this limit, the file is rotated.
--relay-log-space-limit=sizeUpper limit for the total size of all relay logs combined, for each individual channel. For
Nchannels, the combined size of these logs is limited torelay_log_space_limit *.N--replica-parallel-workers=orvalue--slave-parallel-workers=valueNumber of replication applier threads per channel.
replica_checkpoint_grouporslave_checkpoint_groupWaiting time by an receiver thread for each source.
--relay-log-index=filenameBase name for each channel's relay log index file. See Section 19.2.2.4, “Replication Channel Naming Conventions”.
--relay-log=filenameDenotes the base name of each channel's relay log file. See Section 19.2.2.4, “Replication Channel Naming Conventions”.
--replica-net-timeout=Nor--slave-net-timeout=NThis value is set per channel, so that each channel waits for
Nseconds to check for a broken connection.--replica-skip-counter=Nor--slave-skip-counter=NThis value is set per channel, so that each channel skips
Nevents from its source.