QingCloudAppcenter / Redis

Source repo for Redis Apps on QingCloud.
Apache License 2.0
1 stars 9 forks source link

备份超时 #98

Closed MrYourM closed 3 years ago

MrYourM commented 3 years ago

有用户备份 12.88GB 数据超时,可能为数据粒度比较小,数据个数比较多造成生成 rdb 文件耗时较长

处理方式:

https://github.com/QingCloudAppcenter/redis/blob/master/ansible/roles/redis-standalone/files/opt/app/bin/node/redis-standalone.sh#L345 该位置代码做下修改

retry 60 3 $EC_BACKUP_ERR checkBgsaveDone $lastTime 
hlwanghl commented 3 years ago

3 分钟够吗?不够可以再加点。

MrYourM commented 3 years ago

这个之后我再测试下,1条数据 1kb,压 64GB 数据看下耗时

MrYourM commented 3 years ago

每个数据 3 字节,共 49.42G 数据,bgsave 共耗时 859s,按照 60 GB 计算,外加 120s 的 buffer,最终 timeout 设置为 1151s