同步操作将从 Gitee 极速下载/RedisShake 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
RedisShake is mainly used to synchronize data from one redis to another.
Thanks to the Douyu's WSD team for the support.
Redis-shake is developed and maintained by NoSQL Team in Alibaba-Cloud Database department.
Redis-shake has made some improvements based on redis-port, including bug fixes, performance improvements and feature enhancements.
The type can be one of the following:
sync
or psync
command. Including full synchronization and incremental synchronization.scan
command. Only support full synchronization. Plus, RedisShake also supports fetching data from given keys in the input file when scan
command is not supported on the source side. This mode is usually used when sync
and psync
redis commands aren't supported.Please check out the conf/redis-shake.conf
to see the detailed parameters description.
Redis version from 2.x to 6.x.
Supports Standalone
, Cluster
and some proxies type like Codis
, twemproxy
, Aliyun Cluster Proxy
, Tencent Cloud Proxy
and so on.
For codis
and twemproxy
, there maybe some constraints, please checkout this question.
Support Redis Modules:
TairHash: A redis module, similar to redis hash, but you can set expire and version for the field
TairZset: A redis module, similar to redis zset, but you can set multiple scores for each member to support multi-dimensional sorting
TairString: A redis module, similar to redis string, but you can set expire and version for the value. It also provides many very useful commands, such as cas/cad, etc.
Redis-shake has several parameters in the configuration conf/redis-shake.conf
, that maybe confusing, if this is your first time using, please visit this tutorial.
User can use RedisFullCheck to verify correctness.
Redis-shake offers metrics through restful api and log file.
curl 127.0.0.1:9320/metric
.curl http://127.0.0.1:9310/debug/pprof/goroutine?debug=2
Both the source and target type can be standalone, opensource cluster and proxy. Although the architecture patterns of different vendors are different for the proxy architecture, we still support different cloud vendors like alibaba-cloud, tencent-cloud and so on.
If the target is open source redis cluster, redis-shake uses redis-go-cluster driver to write data. When target type is proxy, redis-shakes write data in round-robin way.
If the source is redis cluster, redis-shake launches multiple goroutines for parallel pull. User can use rdb.parallel
to control the RDB syncing concurrency.
The "move slot" operations must be disabled on the source side.
You can directly download the binary in the release package. Run through similar commands:
./redis-shake.linux -type=sync -conf=redis-shake.conf # please note: user must modify redis-shake.conf first to match needs.
You can also build redis-shake yourself according to the following steps:
git clone https://github.com/alibaba/RedisShake.git
cd RedisShake
sh build.sh
cd bin
./redis-shake.linux -type=sync -conf=redis-shake.conf # please note: user must modify redis-shake.conf first to match needs.
We also provide some tools for synchronization in Shake series.
Plus, we have a DingTalk group, so that users can join and discuss.
Group code: 23165540
Version rules: a.b.c.
branch name | rules |
---|---|
master | master branch, do not allowed push code. store the latest stable version. develop branch will merge into this branch once new version created. |
develop(main branch) | develop branch. all the bellowing branches fork from this. |
feature-* | new feature branch. forked from develop branch and then merge back after finish developing, testing, and code review. |
bugfix-* | bugfix branch. forked from develop branch and then merge back after finish developing, testing, and code review. |
improve-* | improvement branch. forked from develop branch and then merge back after finish developing, testing, and code review. |
Tag rules:
Add tag when releasing: "release-v{version}-{date}". for example: "release-v1.0.2-20180628"
User can use -version
to print the version.
Username | |
---|---|
ceshihao | davidzheng23@gmail.com |
wangyiyang | wangyiyang.kk@gmail.com |
muicoder | muicoder@gmail.com |
zhklcf | huikangzhu@126.com |
shuff1e | sfxu@foxmail.com |
xuhualin | xuhualing8439523@163.com |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。