MySQL :: MySQL 8.0 Reference Manual :: 19.2.3 Replication Threads (original) (raw)

19.2.3 Replication Threads

MySQL replication capabilities are implemented using the following types of threads:

You can enable further parallelization for tasks on a replica by setting the system variablereplica_parallel_workers (MySQL 8.0.26 or later) or slave_parallel_workers (prior to MySQL 8.0.26) to a value greater than 0. When this is done, the replica creates the specified number of worker threads to apply transactions, plus a coordinator thread which reads transactions from the relay log and assigns them to workers. A replica withreplica_parallel_workers (slave_parallel_workers) set to a value greater than 0 is called a multithreaded replica. If you are using multiple replication channels, each channel has the number of threads specified using this variable.