AOF自动重写

auto-aof-rewrite-min-size size 
auto-aof-rewrite-percentage percent

在 redis.conf 自动重写的默认配置:

auto-aof-rewrite-percentage 100  //可以自己设置相关重写的条件
auto-aof-rewrite-min-size 64mb

使用 info persistence 命令获取持久化文件的相关信息

127.0.0.1:6379> info persistence
# Persistence
loading:0
......
//aof 当前大小 aof_current_size:0 aof_base_size:0 .....

自动重写出发条件如下:

aof_current_size > auto-aof-rewrite-min-size
aof_current_size-aof_base_size / aof_base_size = auto-aof-rewrite-percentage

 

相关文章:

  • 2021-10-04
  • 2021-11-26
  • 2021-05-22
  • 2022-01-20
  • 2021-09-19
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2021-08-26
  • 2021-05-25
  • 2021-09-18
  • 2021-10-10
  • 2021-04-08
相关资源
相似解决方案