mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
5b82751111
Most of the mtr tests in the galera_3nodes suite fail for a variety of reasons with a variety of errors. This patch fixes several substantial flaws in the galera_3nodes suite tests and in the mtr framework service files, adapting the tests from galera_3nodes for the current version of MariaDB. This patch also synchronizes some galera_3nodes-related files with the latest changes made for MDEV-17835 (v2 patch) and for MDEV-18379 in other branches (10.2 and 10.3). Closes #1161
123 lines
4.3 KiB
INI
123 lines
4.3 KiB
INI
# Use default setting for mysqld processes
|
|
!include include/default_mysqld.cnf
|
|
|
|
[mysqld]
|
|
log-bin
|
|
log-slave-updates
|
|
binlog-format=row
|
|
innodb-autoinc-lock-mode=2
|
|
default-storage-engine=innodb
|
|
wsrep_gtid_mode=1
|
|
gtid_ignore_duplicates
|
|
auto_increment_increment=3
|
|
|
|
wsrep-on=1
|
|
wsrep-provider=@ENV.WSREP_PROVIDER
|
|
wsrep_node_address=127.0.0.1
|
|
# enforce read-committed characteristics across the cluster
|
|
# wsrep-causal-reads=ON
|
|
# wsrep-sync-wait=15
|
|
|
|
[mysqld.1]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep-cluster-address='gcomm://'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.1.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.1.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.1.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.1.#sst_port'
|
|
|
|
[mysqld.2]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.2.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.2.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.2.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.2.#sst_port'
|
|
|
|
[mysqld.3]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.3.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.3.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.3.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.3.#sst_port'
|
|
|
|
|
|
[mysqld.4]
|
|
wsrep_cluster_name=cluster2
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
|
|
wsrep-cluster-address='gcomm://'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.4.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.4.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.4.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.4.#sst_port'
|
|
|
|
[mysqld.5]
|
|
wsrep_cluster_name=cluster2
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.4.#galera_port'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.5.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.5.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.5.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.5.#sst_port'
|
|
|
|
[mysqld.6]
|
|
wsrep_cluster_name=cluster2
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.4.#galera_port'
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.6.#galera_port;evs.suspect_timeout=PT300S;evs.inactive_timeout=PT1000M;evs.install_timeout=PT155S;evs.keepalive_period = PT100S'
|
|
|
|
wsrep_sst_receive_address=127.0.0.2:@mysqld.6.#sst_port
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.6.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.6.#sst_port'
|
|
|
|
[ENV]
|
|
NODE_MYPORT_1= @mysqld.1.port
|
|
NODE_MYSOCK_1= @mysqld.1.socket
|
|
|
|
NODE_MYPORT_2= @mysqld.2.port
|
|
NODE_MYSOCK_2= @mysqld.2.socket
|
|
|
|
NODE_MYPORT_3= @mysqld.3.port
|
|
NODE_MYSOCK_3= @mysqld.3.socket
|
|
|
|
NODE_MYPORT_4= @mysqld.4.port
|
|
NODE_MYSOCK_4= @mysqld.4.socket
|
|
|
|
NODE_MYPORT_5= @mysqld.5.port
|
|
NODE_MYSOCK_5= @mysqld.5.socket
|
|
|
|
NODE_MYPORT_6= @mysqld.6.port
|
|
NODE_MYSOCK_6= @mysqld.6.socket
|
|
|
|
NODE_GALERAPORT_1= @mysqld.1.#galera_port
|
|
NODE_GALERAPORT_2= @mysqld.2.#galera_port
|
|
NODE_GALERAPORT_3= @mysqld.3.#galera_port
|
|
NODE_GALERAPORT_4= @mysqld.4.#galera_port
|
|
NODE_GALERAPORT_5= @mysqld.5.#galera_port
|
|
NODE_GALERAPORT_6= @mysqld.6.#galera_port
|
|
|
|
NODE_SSTPORT_1= @mysqld.1.#sst_port
|
|
NODE_SSTPORT_2= @mysqld.2.#sst_port
|
|
NODE_SSTPORT_3= @mysqld.3.#sst_port
|
|
NODE_SSTPORT_4= @mysqld.4.#sst_port
|
|
NODE_SSTPORT_5= @mysqld.5.#sst_port
|
|
NODE_SSTPORT_6= @mysqld.6.#sst_port
|