When a new node joins the cluster and node1 becomes the donor does that remove node1 from the cluster and block all reads and writes?
I have a multi-master setup and have all of my scripts writing to node2. Is there a way to not have new nodes use that node as it’s donor. Here is my setup below.
[client]
socket=/var/run/mysqld/mysqld.sock
ssl-ca=/etc/mysql/percona-cert/ca.pem
ssl-cert=/etc/mysql/percona-cert/server-cert.pem
ssl-key=/etc/mysql/percona-cert/server-key.pem
[mysqld]
server-id=1
user=mysql
tmpdir=/db3/tmp
datadir=/db1
local_infile=ON
pid-file=/var/run/mysqld/mysqld.pid
socket=/var/run/mysqld/mysqld.sock
log-error=/var/log/mysql/error.log
default_storage_engine=InnoDB
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
innodb_buffer_pool_size = 20G
innodb_buffer_pool_instances = 8
innodb_lock_wait_timeout = 100
wait_timeout = 86400
interactive_timeout = 86400
max_heap_table_size = 96M
sort_buffer_size = 16M
join_buffer_size = 16M
tmp_table_size = 96M
max_sort_length = 8K
max_allowed_packet = 16M
group_concat_max_len = 16M
max_connections = 200
max_connect_errors = 10
max_binlog_size = 128M
log-bin=binlog
log_slave_updates
binlog_expire_logs_seconds=604800
wsrep_provider=/usr/lib/galera4/libgalera_smm.so
binlog_format=ROW
wsrep_slave_threads=8
wsrep_log_conflicts
innodb_autoinc_lock_mode=2
wsrep_cluster_address=gcomm://192.168.2.59,192.168.2.61,192.168.2.64,192.168.2.62
wsrep_node_address=192.168.2.60
wsrep_node_name=DB403
wsrep_cluster_name=DB-cluster
pxc_strict_mode=PERMISSIVE
ssl-ca=/etc/mysql/percona-cert/ca.pem
ssl-cert=/etc/mysql/percona-cert/server-cert.pem
ssl-key=/etc/mysql/percona-cert/server-key.pem
tls_version=TLSv1.2,TLSv1.3
[sst]
tmpdir=/db3/tmp
sst-idle-timeout=0
encrypt=4
ssl-ca=/etc/mysql/percona-cert/ca.pem
ssl-cert=/etc/mysql/percona-cert/server-cert.pem
ssl-key=/etc/mysql/percona-cert/server-key.pem
[mysqld_safe]
service_startup_timeout=73200
192.168.2.59
is the designated write node. Do i just not include it in the wsrep_cluster_address?
I joined a new node and i believe it used 192.168.2.59
as the donor which seems like it caused a traffic jam with transaction locks. Which caused a large traffic jam for hours, until the the locks were granted or freed.
---TRANSACTION 852286683, ACTIVE (PREPARED) 7392 sec
51 lock struct(s), heap size 8312, 7781 row lock(s), undo log entries 5100
MySQL thread id 6845761, OS thread handle 140612192237312, query id 170451164 dev101.domain.pub 192.168.2.187 user1 wsrep: write set replicated and certified (1712284)
commit