Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psync同步模式下,RedisShake目录中的aof文件重做问题 #865

Closed
strongworker opened this issue Sep 20, 2024 · 3 comments
Closed
Labels
type: question Further information is requested

Comments

@strongworker
Copy link

strongworker commented Sep 20, 2024

问题描述(Issue Description)

场景:通过psync模式发起数据同步,aof同步期间,RedisShake会持续写入命令到本地的0.aof文件下;
问题:源Redis触发自动的 bgrewriteaof时(非手动),重做源端aof文件;但是RedisShake目录下的0.aof在附近时间点也发生重做,查看0.aof并未发现bgrewriteaof相应命令;请问下这是什么原因呢?查看Redis相应文档也未查到。

环境信息(Environment)

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

日志信息(Logs)

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

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

其他信息(Additional Information)

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

Please provide any additional information, such as configuration files, error messages, or screenshots.

@strongworker strongworker added the type: question Further information is requested label Sep 20, 2024
@strongworker strongworker changed the title psync同步模式下,RedisShake目中aof文件大小疑问 psync同步模式下,RedisShake目录中的aof文件重做问题 Sep 20, 2024
@suxb201
Copy link
Member

suxb201 commented Sep 20, 2024

源端 Redis 的 aof rewrite 和 RedisShake 数据同步保存的临时 aof 没有一点关系。

@strongworker
Copy link
Author

源端 Redis 的 aof rewrite 和 RedisShake 数据同步保存的临时 aof 没有一点关系。

我也理解没关系,但是为什么临时的aof也会在相近时间点发生重做呢?

@suxb201
Copy link
Member

suxb201 commented Sep 20, 2024

临时的 aof 只会在达到一定容量后轮转,不会 rewrite

@suxb201 suxb201 closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants