问题描述
xtrabackup备份时候,一个有趣的问题,同样的环境同样的库,采用xtrabackup备份一直失败,而因为某次原因数据库重启过后,备份成功了。
模拟故障场景
准备环境
mysql 8.0.25
percona-xtrabackup-8.0.25
sysbench-1.0.20
使用sysbench 创建5000张表
sysbench oltp_read_write --mysql-host=*.*.*.* --mysql-port=*** --mysql-user=** --mysql-password=** --mysql-db=test123 --tables=5000 --table-size=100 --threads=5 prepare
参数预置
/etc/security/limits.conf参数值
* soft nofile 100001
* hard nofile 100002
root soft nofile 100001
root hard nofile 100002
mysql soft nofile 1000
mysql hard nofile 1000
ulimit -n
1000
my.cnf参数设置
table_open_cache=3000
o