1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-05 16:59:35 +03:00
mariadb/mysql-test/suite/sys_vars/r/slave_parallel_mode_basic.result
Kristian Nielsen 8672339328 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.
2015-02-07 09:42:58 +01:00

51 lines
1.5 KiB
Plaintext

SET SESSION slave_parallel_mode= none;
ERROR HY000: Variable 'slave_parallel_mode' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@slave_parallel_mode;
@@slave_parallel_mode
minimal
SELECT @@m1.slave_parallel_mode;
@@m1.slave_parallel_mode
NULL
Warnings:
Warning 1617 There is no master connection 'm1'
Warning 1617 There is no master connection 'm1'
CHANGE MASTER TO master_host='127.0.0.1', master_port=3310, master_user='root';
SELECT @@``.slave_parallel_mode;
@@``.slave_parallel_mode
minimal
SELECT @@slave_parallel_mode;
@@slave_parallel_mode
minimal
Parallel_Mode = 'minimal'
SELECT @@m2.slave_parallel_mode;
@@m2.slave_parallel_mode
NULL
Warnings:
Warning 1617 There is no master connection 'm2'
Warning 1617 There is no master connection 'm2'
SET GLOBAL m2.slave_parallel_mode = none;
Warnings:
Warning 1617 There is no master connection 'm2'
CHANGE MASTER 'm1' TO master_host='127.0.0.1', master_port=3311, master_user='root';
SELECT @@m1.slave_parallel_mode;
@@m1.slave_parallel_mode
optimistic
Parallel_Mode = 'minimal'
SET GLOBAL m1.slave_parallel_mode= conservative;
Parallel_Mode = 'minimal'
SET default_master_connection= 'm1';
SELECT @@slave_parallel_mode;
@@slave_parallel_mode
conservative
SET GLOBAL slave_parallel_mode= aggressive;
SELECT @@slave_parallel_mode;
@@slave_parallel_mode
aggressive
Parallel_Mode = 'aggressive'
SET default_master_connection= '';
SELECT @@slave_parallel_mode;
@@slave_parallel_mode
minimal
RESET SLAVE ALL;
RESET SLAVE 'm1' ALL;