It seems that percona does not set the config as I expected, but I already set the configs in mysqld.cnf under percona-xtradb-cluster.conf.d folder.
This is the percona cluster version:
Server version: 5.7.20-18-57-log Percona XtraDB Cluster (GPL), Release rel18, Revision 4a4da7e, WSREP version 29.24, wsrep_29.24
/etc/mysql/my.cnf
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/percona-xtradb-cluster.conf.d/
/etc/mysql/percona-xtradb-cluster.conf.d/mysqld.cnf
# Template my.cnf for PXC
# Edit to your requirements.
[mysqld]
server-id=1
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-bin
log_slave_updates
expire_logs_days=7
wait_timeout=86400
innodb_buffer_pool_size = 300M # (adjust value here, 50%-70% of total RAM)
innodb_log_file_size = 64M
innodb_flush_log_at_trx_commit = 1 # may change to 2 or 0
innodb_flush_method = O_DIRECT
slow_query_log=1
slow_query_log_always_write_time=1
#log_queries_not_using_indexes=1
#log_output='FILE'
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
The wait_timeout is not 86400 as expected
mysql> show variables like "%wait_time%";
+-------------------------------------+----------+
| Variable_name | Value |
+-------------------------------------+----------+
| innodb_lock_wait_timeout | 50 |
| innodb_print_lock_wait_timeout_info | OFF |
| lock_wait_timeout | 31536000 |
| [B]wait_timeout[/B] | 28800 |
+-------------------------------------+----------+
4 rows in set (0.00 sec)
I tried to use systemctl to reload and restart mysql, but nothing changed.
Is there anything wrong about the config?