Hello Lorraine,
Thank you.
This is my configs files
node 1 :
my.cnf
[mysqld]
# general
server-id=1
datadir=/data
socket=/var/run/mysqld/mysqld.sock
pid-file=/var/run/mysqld/mysqld.pid
back_log=2000
connect_timeout=15
skip-name-resolve=1
ssl=0
table_definition_cache=2000
table_open_cache=10000
metadata_locks_hash_instances=256
max_connections=900
max_allowed_packet=1G
net_buffer_length=1048576
transaction-isolation=READ-COMMITTED
core-file
symbolic-links=0
bind-address = 0.0.0.0
character-set-server=utf8
collation-server=utf8_general_ci
# log
log-error=/var/log/mysqld.log
general-log-file= /datalog/mysql.log
pid-file=/var/run/mysqld/mysqld.pid
slow_query_log=ON
long_query_time=1
#slow_query_log_file=/datalog/mysql-slow.log
log_slow_rate_limit=100
log_slow_rate_type=query
log_slow_verbosity=full
log_slow_admin_statements=ON
log_slow_slave_statements=ON
slow_query_log_always_write_time=1
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
net_read_timeout=1440
net_write_timeout=2880
#pooling
#thread_handling=pool-of-threads
#thread_pool_size=36
# innodb
innodb_strict_mode=0
innodb_buffer_pool_size=8G
innodb_buffer_pool_instances=8
innodb_log_file_size=1G
innodb_write_io_threads=8
innodb_read_io_threads=8
innodb_thread_concurrency=2
innodb_doublewrite=1
innodb_flush_log_at_trx_commit=1
innodb-page-cleaners=8
innodb_purge_threads=4
innodb_lru_scan_depth=2048
innodb_io_capacity=8000
innodb_io_capacity_max=16000
innodb_flush_method=O_DIRECT_NO_FSYNC
innodb_adaptive_hash_index=OFF
innodb-change-buffering=none
innodb_flush_neighbors=0
innodb_max_dirty_pages_pct=90
innodb_max_dirty_pages_pct_lwm=10
# binlog
log-bin=/datalog/mysql-bin
log-bin-index=/datalog/mysql-bin.index
binlog-checksum=NONE
log_slave_updates
expire_logs_days=14
max_binlog_files=20
max_binlog_size=500M
log_output=file
binlog-format=ROW
relay-log=relay-1
enforce-gtid-consistency
gtid-mode=on
master-info-repository=TABLE
relay-log-info-repository=TABLE
# monitoring
performance_schema=ON
innodb_monitor_enable='%'
performance_schema_instrument='%synch%=on'
userstat=1
wsrep.cnf
[mysqld]
# Path to Galera library
wsrep_provider=/usr/lib/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://192.168.100.10,192.168.100.11,192.168.100.12
# In order for Galera to work correctly binlog format should be ROW
binlog_format=ROW
# MyISAM storage engine has only experimental support
default_storage_engine=InnoDB
# Slave thread to use
wsrep_slave_threads= 8
wsrep_log_conflicts
# 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=192.168.100.10
# Cluster name
wsrep_cluster_name=pxc-cluster
#If wsrep_node_name is not specified, then system hostname will be used
wsrep_node_name=pxc1
#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="sstuser:*********"
node 2:
my.cnf
[mysqld]
# general
server-id=1
datadir=/data
socket=/var/run/mysqld/mysqld.sock
pid-file=/var/run/mysqld/mysqld.pid
back_log=2000
connect_timeout=15
skip-name-resolve=1
ssl=0
table_definition_cache=2000
table_open_cache=10000
metadata_locks_hash_instances=256
max_connections=900
max_allowed_packet=1G
net_buffer_length=1048576
transaction-isolation=READ-COMMITTED
core-file
symbolic-links=0
bind-address = 0.0.0.0
character-set-server=utf8
collation-server=utf8_general_ci
# log
log-error=/var/log/mysqld.log
general-log-file= /datalog/mysql.log
pid-file=/var/run/mysqld/mysqld.pid
slow_query_log=ON
long_query_time=1
#slow_query_log_file=/datalog/mysql-slow.log
log_slow_rate_limit=100
log_slow_rate_type=query
log_slow_verbosity=full
log_slow_admin_statements=ON
log_slow_slave_statements=ON
slow_query_log_always_write_time=1
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
net_read_timeout=1440
net_write_timeout=2880
#pooling
#thread_handling=pool-of-threads
#thread_pool_size=36
# innodb
innodb_strict_mode=0
innodb_buffer_pool_size=8G
innodb_buffer_pool_instances=8
innodb_log_file_size=1G
innodb_write_io_threads=8
innodb_read_io_threads=8
innodb_thread_concurrency=2
innodb_doublewrite=1
innodb_flush_log_at_trx_commit=1
innodb-page-cleaners=8
innodb_purge_threads=4
innodb_lru_scan_depth=2048
innodb_io_capacity=8000
innodb_io_capacity_max=16000
innodb_flush_method=O_DIRECT_NO_FSYNC
innodb_adaptive_hash_index=OFF
innodb-change-buffering=none
innodb_flush_neighbors=0
innodb_max_dirty_pages_pct=90
innodb_max_dirty_pages_pct_lwm=10
# binlog
log-bin=/datalog/mysql-bin
log-bin-index=/datalog/mysql-bin.index
binlog-checksum=NONE
log_slave_updates
expire_logs_days=14
max_binlog_files=20
max_binlog_size=500M
log_output=file
binlog-format=ROW
relay-log=relay-1
enforce-gtid-consistency
gtid-mode=on
master-info-repository=TABLE
relay-log-info-repository=TABLE
# monitoring
performance_schema=ON
innodb_monitor_enable='%'
performance_schema_instrument='%synch%=on'
userstat=1
wsrep.cnf
[mysqld]
# Path to Galera library
wsrep_provider=/usr/lib/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://192.168.100.10,192.168.100.11,192.168.100.12
# In order for Galera to work correctly binlog format should be ROW
binlog_format=ROW
# MyISAM storage engine has only experimental support
default_storage_engine=InnoDB
# Slave thread to use
wsrep_slave_threads= 8
wsrep_log_conflicts
# 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=192.168.100.11
# Cluster name
wsrep_cluster_name=pxc-cluster
#If wsrep_node_name is not specified, then system hostname will be used
wsrep_node_name=pxc2
#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="sstuser:*********"
node 2:
my.cnf
[mysqld]
# general
server-id=1
datadir=/data
socket=/var/run/mysqld/mysqld.sock
pid-file=/var/run/mysqld/mysqld.pid
back_log=2000
connect_timeout=15
skip-name-resolve=1
ssl=0
table_definition_cache=2000
table_open_cache=10000
metadata_locks_hash_instances=256
max_connections=900
max_allowed_packet=1G
net_buffer_length=1048576
transaction-isolation=READ-COMMITTED
core-file
symbolic-links=0
bind-address = 0.0.0.0
character-set-server=utf8
collation-server=utf8_general_ci
# log
log-error=/var/log/mysqld.log
general-log-file= /datalog/mysql.log
pid-file=/var/run/mysqld/mysqld.pid
slow_query_log=ON
long_query_time=1
#slow_query_log_file=/datalog/mysql-slow.log
log_slow_rate_limit=100
log_slow_rate_type=query
log_slow_verbosity=full
log_slow_admin_statements=ON
log_slow_slave_statements=ON
slow_query_log_always_write_time=1
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
net_read_timeout=1440
net_write_timeout=2880
#pooling
#thread_handling=pool-of-threads
#thread_pool_size=36
# innodb
innodb_strict_mode=0
innodb_buffer_pool_size=8G
innodb_buffer_pool_instances=8
innodb_log_file_size=1G
innodb_write_io_threads=8
innodb_read_io_threads=8
innodb_thread_concurrency=2
innodb_doublewrite=1
innodb_flush_log_at_trx_commit=1
innodb-page-cleaners=8
innodb_purge_threads=4
innodb_lru_scan_depth=2048
innodb_io_capacity=8000
innodb_io_capacity_max=16000
innodb_flush_method=O_DIRECT_NO_FSYNC
innodb_adaptive_hash_index=OFF
innodb-change-buffering=none
innodb_flush_neighbors=0
innodb_max_dirty_pages_pct=90
innodb_max_dirty_pages_pct_lwm=10
# binlog
log-bin=/datalog/mysql-bin
log-bin-index=/datalog/mysql-bin.index
binlog-checksum=NONE
log_slave_updates
expire_logs_days=14
max_binlog_files=20
max_binlog_size=500M
log_output=file
binlog-format=ROW
relay-log=relay-1
enforce-gtid-consistency
gtid-mode=on
master-info-repository=TABLE
relay-log-info-repository=TABLE
# monitoring
performance_schema=ON
innodb_monitor_enable='%'
performance_schema_instrument='%synch%=on'
userstat=1
wsrep.cnf
[mysqld]
# Path to Galera library
wsrep_provider=/usr/lib/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://192.168.100.10,192.168.100.11,192.168.100.12
# In order for Galera to work correctly binlog format should be ROW
binlog_format=ROW
# MyISAM storage engine has only experimental support
default_storage_engine=InnoDB
# Slave thread to use
wsrep_slave_threads= 8
wsrep_log_conflicts
# 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=192.168.100.12
# Cluster name
wsrep_cluster_name=pxc-cluster
#If wsrep_node_name is not specified, then system hostname will be used
wsrep_node_name=pxc3
#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="sstuser:*********"
Thanks