Skip to content

支持相同分片redis集群的双向同步#101

Open
erwadba wants to merge 1 commit intomgtv-tech:masterfrom
erwadba:master
Open

支持相同分片redis集群的双向同步#101
erwadba wants to merge 1 commit intomgtv-tech:masterfrom
erwadba:master

Conversation

@erwadba
Copy link

@erwadba erwadba commented Jan 21, 2026

#77
实现思路:支持双向同步 · Issue #367 · tair-opensource/RedisShake (github.com)
1.将checkpoint独立出来放在到配置文件(syncCheckPointKey+filterCheckPointKey)。使用multi..exec +checkpoint对所有发送到目标端执行的命令进行标记。
2.识别特定的filterCheckPointKey,将指定的checkpoint进行过滤,消除回环,避免同步回原集群。
77f6cc65-8b62-483b-96a9-6996686348b9

特别注意:
由于restore不经过multi..exec,配置双向同步的时候需要在config配置中过滤掉该命令
filter:
commandBlacklist:
- restore

@erwadba
Copy link
Author

erwadba commented Jan 21, 2026

@ikenchina PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant