-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge remote and add windows platform support
- Loading branch information
Showing
13 changed files
with
112 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ result.db.* | |
bin/* | ||
conf/* | ||
!conf/redis-shake.conf | ||
!.circleci/config.yml | ||
|
||
dump.data | ||
runtime.trace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ The type can be one of the followings:<br> | |
|
||
* **decode**: Decode dumped payload to human readable format (hex-encoding). | ||
* **restore**: Restore RDB file to target redis. | ||
* **dump**: Dump RDB file from souce redis. | ||
* **dump**: Dump RDB file from source redis. | ||
* **sync**: Sync data from source redis to target redis by `sync` or `psync` command. Including full synchronization and incremental synchronization. | ||
* **rump**: Sync data from source redis to target redis by `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. | ||
|
||
|
@@ -99,3 +99,5 @@ Plus, we have a WeChat group so that users can join and discuss, but the group u | |
| :------: | :------: | | ||
| ceshihao | [email protected] | | ||
| wangyiyang | [email protected] | | ||
| muicoder | [email protected] | | ||
| zhklcf | [email protected] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,6 @@ system_profile = 9310 | |
# restful port,查看metric端口, -1表示不启用,如果是`restore`模式,只有设置为-1才会在完成RDB恢复后退出,否则会一直block。 | ||
http_profile = 9320 | ||
|
||
# runtime.GOMAXPROCS, 0 means use cpu core number: runtime.NumCPU() | ||
ncpu = 0 | ||
|
||
# parallel routines number used in RDB file syncing. default is 64. | ||
# 启动多少个并发线程同步一个RDB文件。 | ||
parallel = 32 | ||
|
@@ -41,7 +38,8 @@ source.type = standalone | |
# 2. ${sentinel_master_name}:${master or slave}@sentinel single/cluster address, e.g., mymaster:[email protected]:26379;127.0.0.1:26380, or @127.0.0.1:26379;127.0.0.1:26380. for "sentinel" type. | ||
# 3. cluster that has several db nodes split by semicolon(;). for "cluster" type. e.g., 10.1.1.1:20331;10.1.1.2:20441. | ||
# 4. proxy address(used in "rump" mode only). for "proxy" type. | ||
# 源redis地址。对于sentinel模式,输入格式为"master名字:拉取角色为master或者slave@sentinel的地址" | ||
# 源redis地址。对于sentinel或者开源cluster模式,输入格式为"master名字:拉取角色为master或者slave@sentinel的地址",别的cluster | ||
# 架构,比如codis, twemproxy, aliyun proxy等需要配置所有master或者slave的db地址。 | ||
source.address = 127.0.0.1:20441 | ||
# password of db/proxy. even if type is sentinel. | ||
source.password_raw = 123456 | ||
|
@@ -165,31 +163,16 @@ metric = true | |
# 是否将metric打印到log中 | ||
metric.print_log = false | ||
|
||
# heartbeat | ||
# send heartbeat to this url | ||
# used in `sync`. | ||
# 心跳的url地址,redis-shake将会发送到这个地址 | ||
#heartbeat.url = http://127.0.0.1:8000 | ||
heartbeat.url = | ||
# interval by seconds | ||
# 心跳保活周期 | ||
heartbeat.interval = 3 | ||
# external info which will be included in heartbeat data. | ||
# 在心跳报文中添加额外的信息 | ||
heartbeat.external = test external | ||
# local network card to get ip address, e.g., "lo", "eth0", "en0" | ||
# 获取ip的网卡 | ||
heartbeat.network_interface = | ||
|
||
# sender information. | ||
# sender flush buffer size of byte. | ||
# used in `sync`. | ||
# 发送缓存的字节长度,超过这个阈值将会强行刷缓存发送 | ||
sender.size = 104857600 | ||
# sender flush buffer size of oplog number. | ||
# used in `sync`. | ||
# 发送缓存的报文个数,超过这个阈值将会强行刷缓存发送 | ||
sender.count = 5000 | ||
# used in `sync`. flush sender buffer when bigger than this threshold. | ||
# 发送缓存的报文个数,超过这个阈值将会强行刷缓存发送,对于目的端是cluster的情况,这个值 | ||
# 的调大将会占用部分内存。 | ||
sender.count = 4096 | ||
# delay channel size. once one oplog is sent to target redis, the oplog id and timestamp will also | ||
# stored in this delay queue. this timestamp will be used to calculate the time delay when receiving | ||
# ack from target redis. | ||
|
@@ -207,13 +190,11 @@ keep_alive = 0 | |
# number of keys captured each time. default is 100. | ||
# 每次scan的个数,不配置则默认100. | ||
scan.key_number = 50 | ||
|
||
# used in `rump`. | ||
# we support some special redis types that don't use default `scan` command like alibaba cloud and tencent cloud. | ||
# 有些版本具有特殊的格式,与普通的scan命令有所不同,我们进行了特殊的适配。目前支持腾讯云的集群版"tencent_cluster" | ||
# 和阿里云的集群版"aliyun_cluster"。 | ||
scan.special_cloud = | ||
|
||
# used in `rump`. | ||
# we support to fetching data from given file which marks the key list. | ||
# 有些云版本,既不支持sync/psync,也不支持scan,我们支持从文件中进行读取所有key列表并进行抓取:一行一个key。 | ||
|
@@ -229,6 +210,3 @@ qps = 200000 | |
# replace hash tag. | ||
# used in `sync`. | ||
replace_hash_tag = false | ||
|
||
# used in `restore` and `dump`. | ||
extra = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters