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

The world's most popular open source database

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 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.

Multithreaded replicas are also supported by NDB Cluster. SeeSection 25.7.11, “NDB Cluster Replication Using the Multithreaded Applier”, for more information.