redis-shake工具
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.

117 lines
3.1 KiB

6 years ago
# this is the configuration of redis-shake.
# id
id = redis-shake
# log file
log_file =
# pprof port
system_profile = 9310
# restful port
http_profile = 9320
# runtime.GOMAXPROCS, 0 means use cpu core number: runtime.NumCPU()
ncpu = 0
# parallel routines number used in RDB file syncing.
parallel = 4
# input RDB file. read from stdin, default is stdin ('/dev/stdin').
# used in `decode` and `restore`.
input_rdb = local_dump
# output RDB file. default is stdout ('/dev/stdout').
# used in `decode` and `dump`.
output_rdb = local_dump
# source redis configuration.
# used in `dump` and `sync`.
# ip:port
source.address = 10.101.72.137:20441
# password.
source.password_raw = kLNIl691OZctWST
# auth type, don't modify it
source.auth_type = auth
# version number, default is 6 (6 for Redis Version <= 3.0.7, 7 for >=3.2.0)
source.version = 6
# target redis configuration. used in `restore` and `sync`.
# used in `restore` and `sync`.
# ip:port
target.address = 10.101.72.137:20551
# password.
target.password_raw = kLNIl691OZctWST
# auth type, don't modify it
target.auth_type = auth
# version number, default is 6 (6 for Redis Version <= 3.0.7, 7 for >=3.2.0)
target.version = 6
# all the data will come into this db. < 0 means disable.
# used in `restore` and `sync`.
target.db = -1
# use for expire key, set the time gap when source and target timestamp are not the same.
fake_time =
# force rewrite when destination restore has the key
# used in `restore` and `sync`.
rewrite = true
# filter db or key or slot
# choose these db, e.g., 5, only choose db5. defalut is all.
# used in `restore` and `sync`.
filter.db =
# filter key with prefix string. multiple keys are separated by ';'.
# e.g., a;b;c
# default is all.
# used in `restore` and `sync`.
filter.key =
# filter given slot, multiple slots are separated by ';'.
# e.g., 1;2;3
# used in `sync`.
filter.slot =
# big key threshold, default is 500 * 1024 * 1024. The field of big key will be split in processing.
big_key_threshold = 524288000
# use psync command.
# used in `sync`.
psync = false
# enable metric
# used in `sync`.
metric = true
# print in log
metric.print_log = true
# heartbeat
# send heartbeat to this url
# used in `sync`.
heartbeat.url = http://127.0.0.1:8000
# 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"
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
# 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 receive ack from target redis.
# used in `sync`.
sender.delay_channel_size = 65535
# ----------------splitter----------------
# belowing variables are useless for current opensource version so don't set.
# replace hash tag.
# used in `sync`.
replace_hash_tag = false
# used in `restore` and `dump`.
extra = false