Skip to content

aof文件堆积很多,这个怎么解决 #998

@wangyanjie2019

Description

@wangyanjie2019

问题描述(Issue Description)

我在尝试用redis-shake的最新版及降级到4.2.2这个版本后,目前我们源端全量同步的文件有4.5G,往目的端同步,已经持续24小时了,现在才同步到3.3G,查看磁盘空间占用很大,全是aof的文件占用空间大的。这个是正常的,我手动删除最早的aof文件可以吗,如下图

Image

Please provide a brief description of the issue you encountered.

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):4.2.2
  • Redis 源端版本(Redis Source Version):4.0.0
  • Redis 目的端版本(Redis Destination Version):4.0.0
  • Redis 部署方式(standalone/cluster/sentinel):sentinel
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):是

日志信息(Logs)

如果有错误日志或其他相关日志,请在这里提供。

If there are any error logs or other relevant logs, please provide them here.

其他信息(Additional Information)

请提供任何其他相关的信息,如配置文件、错误信息或截图等。

[sync_reader]
cluster = false # set to true if source is a redis cluster
address = "10.18.251.241:6382" # when cluster is true, set address to one of the cluster node
username = "" # keep empty if not using ACL
password = "abc" # keep empty if no authentication is required
tls = false #
sync_rdb = true # set to false if you don't want to sync rdb
sync_aof = true # set to false if you don't want to sync aof
prefer_replica = false # set to true if you want to sync from replica node
try_diskless = false # set to true if you want to sync by socket and source repl-diskless-sync=yes

#[scan_reader]
#cluster = false # set to true if source is a redis cluster
#address = "127.0.0.1:6379" # when cluster is true, set address to one of the cluster node
#username = "" # keep empty if not using ACL
#password = "" # keep empty if no authentication is required
#tls = false
#dbs = [] # set you want to scan dbs such as [1,5,7], if you don't want to scan all
#scan = true # set to false if you don't want to scan keys
#ksn = false # set to true to enabled Redis keyspace notifications (KSN) subscription
#count = 1 # number of keys to scan per iteration

[rdb_reader]

filepath = "/tmp/dump.rdb"

[aof_reader]

filepath = "/tmp/.aof"

timestamp = 0 # subsecond

[redis_writer]
cluster = false # set to true if target is a redis cluster
sentinel = false # set to true if target is a redis sentinel
master = "" # set to master name if target is a redis sentinel
address = "10.27.253.240:6382" # when cluster is true, set address to one of the cluster node
username = "" # keep empty if not using ACL
password = "abc" # keep empty if no authentication is required
tls = false
off_reply = false # turn off the server reply

[filter]

Allow keys with specific prefixes or suffixes

Examples:

allow_key_prefix = ["user:", "product:"]

allow_key_suffix = [":active", ":valid"]

Leave empty to allow all keys

allow_key_prefix = []
allow_key_suffix = []

Block keys with specific prefixes or suffixes

Examples:

block_key_prefix = ["temp:", "cache:"]

block_key_suffix = [":tmp", ":old"]

Leave empty to block nothing

block_key_prefix = []
block_key_suffix = []
其它配置文件都是默认的。没有变动

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions