You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vinllen
f123bb0a4f
|
6 years ago | |
---|---|---|
conf | 6 years ago | |
src | 6 years ago | |
.gitignore | 6 years ago | |
ChangeLog | 6 years ago | |
MIT-LICENSE.txt | 6 years ago | |
Makefile | 6 years ago | |
README.md | 6 years ago | |
build.sh | 6 years ago | |
wandoujia_license.txt | 6 years ago |
README.md
Redis-shake is mainly used to synchronize data from one redis databases to another.
Thanks to the Douyu's WSD team for the support. 感谢斗鱼公司的web服务部提供的支持。
Redis-Shake
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.
Main Functions
The type can be one of the following:
- decode: Decode dumped payload to human readable format (hex-encoding).
- restore: Restore RDB file to target redis.
- dump: Dump RDB file from souce redis.
- sync: Sync data from source redis to target redis.
Please check out the conf/redis-shake.conf
to see the detailed parameters description.
Verification
User can use redis-full-check to verify correctness.
Metric
Redis-shake offers metrics through restful api and log file.
- restful api:
curl 127.0.0.1:9320/metric
. - log: the metric info will be printed in the log periodically if enable.
Code branch rules
Version rules: a.b.c.
- a: major version
- b: minor version. even number means stable version.
- c: bugfix version
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 | 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"
Usage
- git clone https://github.com/aliyun/redis-shake.git
- cd redis-shake/src/vendor
- GOPATH=`pwd`/../..; govendor sync #please note: must install govendor first and then pull all dependencies
- cd ../../ && ./build.sh
- ./bin/collector -type=$(type_must_be_sync,_dump,_restore_or_decode) -conf=conf/redis-shake.conf #please note: user must modify collector.conf first to match needs.