mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-6676: Optimistic parallel replication
Adjust the configuration options, as discussed on the maria-developers@ mailing list. The option to hint a transaction to not be replicated in parallel is now called @@skip_parallel_replication, consistent with @@skip_replication. And the --slave-parallel-mode is now simplified to have just one of the following values: none minimal conservative optimistic aggressive This reflects successively harder efforts to find opportunities to run things in parallel on the slave. It allows to extend the server with more automatic heuristics in the future without having to introduce a new configuration option for each and every one.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# Also tests some command line options, in slave_parallel_mode_basic-master.opt
|
||||
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
SET SESSION slave_parallel_mode= '';
|
||||
SET SESSION slave_parallel_mode= none;
|
||||
|
||||
SELECT @@slave_parallel_mode;
|
||||
SELECT @@m1.slave_parallel_mode;
|
||||
@@ -15,16 +15,16 @@ SELECT @@slave_parallel_mode;
|
||||
--source include/show_slave_status.inc
|
||||
|
||||
SELECT @@m2.slave_parallel_mode;
|
||||
SET GLOBAL m2.slave_parallel_mode = '';
|
||||
SET GLOBAL m2.slave_parallel_mode = none;
|
||||
|
||||
CHANGE MASTER 'm1' TO master_host='127.0.0.1', master_port=3311, master_user='root';
|
||||
SELECT @@m1.slave_parallel_mode;
|
||||
--source include/show_slave_status.inc
|
||||
SET GLOBAL m1.slave_parallel_mode= follow_master_commit;
|
||||
SET GLOBAL m1.slave_parallel_mode= conservative;
|
||||
--source include/show_slave_status.inc
|
||||
SET default_master_connection= 'm1';
|
||||
SELECT @@slave_parallel_mode;
|
||||
SET GLOBAL slave_parallel_mode= waiting;
|
||||
SET GLOBAL slave_parallel_mode= aggressive;
|
||||
SELECT @@slave_parallel_mode;
|
||||
--source include/show_slave_status.inc
|
||||
SET default_master_connection= '';
|
||||
|
||||
Reference in New Issue
Block a user