46
loading...
This website collects cookies to deliver better user experience
STOP SLAVE SQL_THREAD;
SET GLOBAL slave_parallel_threads = 4;
START SLAVE SQL_THREAD;
SHOW GLOBAL VARIABLES LIKE 'slave_parallel_threads';
MariaDB [mysql]> SHOW PROCESSLIST;
+--------------+-----------------------------------------------------------------------------+
| Command | State |
+--------------+-----------------------------------------------------------------------------+
| Slave_IO | Waiting for master to send event |
| Slave_worker | Waiting for work from SQL thread |
| Slave_worker | Waiting for prior transaction to commit |
| Slave_worker | Closing tables |
| Slave_worker | Waiting for work from SQL thread |
| Slave_SQL | Slave has read all relay log; waiting for the slave I/O thread to update it |
+--------------+-----------------------------------------------------------------------------+