Hello Lorraine,
Thanks for the reply and email,
The version of Percona XtraDB Cluster is 5.7.21
Node 1- Bootstrap in London
Node 2 - Joiner node in Hongkong
Node 3 - Joiner node in Frankfurt
Configuration Files: /etc/my.cnf
The Percona XtraDB Cluster 5.7 configuration file.
* IMPORTANT: Additional settings that can override those from this file!
The files must end with ‘.cnf’, otherwise they’ll be ignored.
Please make any edits and changes to the appropriate sectional files
included below.
!includedir /etc/my.cnf.d/
!includedir /etc/percona-xtradb-cluster.conf.d/
/etc/percona-xtradb-cluster.conf.d/mysqld.cnf
Template my.cnf for PXC
Edit to your requirements.
[client]
socket=/var/lib/mysql/mysql.sock
[mysqld]
server-id=1
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysql/mysql-error.log
slow-query-log-file=/var/log/mysql/mysql-slow.log
pid-file=/var/run/mysqld/mysqld.pid
log-bin
log_slave_updates
expire_logs_days=7
sql_mode=‘’
innodb_buffer_pool_size = 6G
innodb_log_file_size = 2G
#innodb_log_file_size = 50331648
innodb_flush_log_at_trx_commit = 1
innodb_flush_method = O_DIRECT
innodb_read_io_threads = 16
innodb_write_io_threads = 16
innodb_io_capacity = 3000
innodb_io_capacity_max = 6000
#innodb_force_recovery=6
#innodb_force_recovery=3
#innodb_purge_threads=0
Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
/etc/percona-xtradb-cluster.conf.d/wsrep.cnf
[mysqld]
Path to Galera library
wsrep_provider=/usr/lib64/galera3/libgalera_smm.so
Cluster connection URL contains IPs of nodes
#If no IP is found, this implies that a new cluster needs to be created,
#in order to do that you need to bootstrap this node
wsrep_cluster_address=gcomm://node1-ip,node2-ip,node3-ip
In order for Galera to work correctly binlog format should be ROW
binlog_format=ROW
wsrep_provider_options=“gcache.size=7G;gcache.page_size=3G;gcache.recover=yes”
MyISAM storage engine has only experimental support
default_storage_engine=InnoDB
Slave thread to use
wsrep_slave_threads=16
wsrep_log_conflicts=ON
This changes how InnoDB autoincrement locks are managed and is a requirement for Galera
innodb_autoinc_lock_mode=2
Node IP address
wsrep_node_address=node1-ip
Cluster name
wsrep_cluster_name=cluster-new
#If wsrep_node_name is not specified, then system hostname will be used
wsrep_node_name=node1cluster
#pxc_strict_mode allowed values: DISABLED,PERMISSIVE,ENFORCING,MASTER
pxc_strict_mode=DISABLED
SST method
wsrep_sst_method=xtrabackup-v2
#Authentication for SST method
wsrep_sst_auth=“user:pass”
max_connections=999999
max_connect_errors=999999
This is the config in all nodes. Whenever i restart the cluster the UUID changes with different one, this resets the joiner node UUID leads to SST.