|
|
|
@ -23,6 +23,7 @@ http_profile = 9320 |
|
|
|
|
ncpu = 0 |
|
|
|
|
|
|
|
|
|
# parallel routines number used in RDB file syncing. default is 64. |
|
|
|
|
# 启动多少个并发线程同步一个RDB文件。 |
|
|
|
|
parallel = 32 |
|
|
|
|
|
|
|
|
|
# source redis configuration. |
|
|
|
@ -49,6 +50,24 @@ source.auth_type = auth |
|
|
|
|
# tls enable, true or false. Currently, only support standalone. |
|
|
|
|
# open source redis does NOT support tls so far, but some cloud versions do. |
|
|
|
|
source.tls_enable = false |
|
|
|
|
# input RDB file. |
|
|
|
|
# used in `decode` and `restore`. |
|
|
|
|
# if the input is list split by semicolon(;), redis-shake will restore the list one by one. |
|
|
|
|
# 如果是decode或者restore,这个参数表示读取的rdb文件。支持输入列表,例如:rdb.0;rdb.1;rdb.2 |
|
|
|
|
# redis-shake将会挨个进行恢复。 |
|
|
|
|
source.rdb.input = local |
|
|
|
|
# the concurrence of RDB syncing, default is len(source.address) or len(source.rdb.input). |
|
|
|
|
# used in `dump`, `sync` and `restore`. 0 means default. |
|
|
|
|
# This is useless when source.type isn't cluster or only input is only one RDB. |
|
|
|
|
# 拉取的并发度,如果是`dump`或者`sync`,默认是source.address中db的个数,`restore`模式默认len(source.rdb.input)。 |
|
|
|
|
# 假如db节点/输入的rdb有5个,但rdb.parallel=3,那么一次只会 |
|
|
|
|
# 并发拉取3个db的全量数据,直到某个db的rdb拉取完毕并进入增量,才会拉取第4个db节点的rdb, |
|
|
|
|
# 以此类推,最后会有len(source.address)或者len(rdb.input)个增量线程同时存在。 |
|
|
|
|
source.rdb.parallel = 0 |
|
|
|
|
# for special cloud vendor: ucloud |
|
|
|
|
# used in `decode` and `restore`. |
|
|
|
|
# ucloud集群版的rdb文件添加了slot前缀,进行特判剥离: ucloud_cluster。 |
|
|
|
|
source.rdb.special_cloud = |
|
|
|
|
|
|
|
|
|
# target redis configuration. used in `restore`, `sync` and `rump`. |
|
|
|
|
# the type of target redis can be "standalone", "proxy" or "cluster". |
|
|
|
@ -74,27 +93,11 @@ target.db = -1 |
|
|
|
|
# tls enable, true or false. Currently, only support standalone. |
|
|
|
|
# open source redis does NOT support tls so far, but some cloud versions do. |
|
|
|
|
target.tls_enable = false |
|
|
|
|
|
|
|
|
|
# input RDB file. |
|
|
|
|
# used in `decode` and `restore`. |
|
|
|
|
# if the input is list split by semicolon(;), redis-shake will restore the list one by one. |
|
|
|
|
# 如果是decode或者restore,这个参数表示读取的rdb文件。支持输入列表,例如:rdb.0;rdb.1;rdb.2 |
|
|
|
|
# redis-shake将会挨个进行恢复。 |
|
|
|
|
rdb.input = local |
|
|
|
|
# output RDB file prefix. |
|
|
|
|
# used in `decode` and `dump`. |
|
|
|
|
# 如果是decode或者dump,这个参数表示输出的rdb前缀,比如输入有3个db,那么dump分别是: |
|
|
|
|
# ${output_rdb}.0, ${output_rdb}.1, ${output_rdb}.2 |
|
|
|
|
rdb.output = local_dump |
|
|
|
|
# the concurrence of fetching data, default is len(source.address) or len(rdb.input). |
|
|
|
|
# used in `dump`, `sync` and `restore`. 0 means default. |
|
|
|
|
# 拉取的并发度,如果是`dump`或者`sync`,默认是source.address中db的个数,`restore`模式默认len(rdb.input)。 |
|
|
|
|
# 假如db节点/输入的rdb有5个,但rdb.parallel=3,那么一次只会 |
|
|
|
|
# 并发拉取3个db的全量数据,直到某个db的rdb拉取完毕,才会拉取第4个db节点的rdb,以此类推。 |
|
|
|
|
rdb.parallel = 0 |
|
|
|
|
# for special cloud vendor: ucloud |
|
|
|
|
# ucloud集群版的rdb文件添加了slot前缀,进行特判剥离: ucloud_cluster。 |
|
|
|
|
rdb.special_cloud = |
|
|
|
|
target.rdb.output = local_dump |
|
|
|
|
|
|
|
|
|
# use for expire key, set the time gap when source and target timestamp are not the same. |
|
|
|
|
# 用于处理过期的键值,当迁移两端不一致的时候,目的端需要加上这个值 |
|
|
|
|