2017-12-25 05:09:49 +05:30
|
|
|
# Use default setting for mysqld processes
|
|
|
|
!include include/default_mysqld.cnf
|
|
|
|
|
|
|
|
[mysqld]
|
2022-04-26 06:11:33 +02:00
|
|
|
loose-innodb
|
|
|
|
log-bin=mysqld-bin
|
2017-12-25 05:09:49 +05:30
|
|
|
log-slave-updates
|
|
|
|
binlog-format=row
|
|
|
|
innodb-autoinc-lock-mode=2
|
|
|
|
default-storage-engine=innodb
|
|
|
|
wsrep_gtid_mode=1
|
|
|
|
gtid_ignore_duplicates
|
2019-02-06 16:44:36 +01:00
|
|
|
auto_increment_increment=3
|
2017-12-25 05:09:49 +05:30
|
|
|
|
|
|
|
wsrep-provider=@ENV.WSREP_PROVIDER
|
|
|
|
# enforce read-committed characteristics across the cluster
|
2022-04-26 06:11:33 +02:00
|
|
|
# wsrep-causal-reads=ON
|
2019-02-14 23:48:54 +01:00
|
|
|
wsrep-sync-wait=15
|
2017-12-25 05:09:49 +05:30
|
|
|
|
|
|
|
[mysqld.1]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_cluster_address=gcomm://
|
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.1.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.1.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
|
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.2.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.2.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
|
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.3.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.3.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_cluster_address='gcomm://
|
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.4.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.4.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
|
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.4.#galera_port'
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.5.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.5.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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]
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep-on=1
|
2017-12-25 05:09:49 +05:30
|
|
|
#galera_port=@OPT.port
|
|
|
|
#ist_port=@OPT.port
|
|
|
|
#sst_port=@OPT.port
|
|
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.4.#galera_port'
|
2022-04-26 06:11:33 +02:00
|
|
|
wsrep_provider_options='repl.causal_read_timeout=PT90S;base_port=@mysqld.6.#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
|
2022-04-12 13:37:27 +02:00
|
|
|
wsrep_node_address='127.0.0.1:@mysqld.6.#galera_port'
|
2017-12-25 05:09:49 +05:30
|
|
|
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
|