-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Description
如標題所示,我是使用sync的方式,啟動redis-gunyu,能夠設定不同步某個db嗎? 例如db2。
我的redis-gunyu設定如下:
server:
listen: 127.0.0.1:18000
listenPeer: 127.0.0.1:18000
gracefullStopTimeout: 1s
checkRedisTypologyTicker: 10s
input:
redis:
addresses: [來源IP:6379]
type: standalone
userName: 帳號
password: 密碼
mode: dynamic
syncFrom: prefer_slave
channel:
storer:
dirPath: /usr/local/redis/redisgunyu4
maxSize: 2147483648
logSize: 209715200
output:
replay:
resumeFromBreakPoint: true
keyExists: replace
metric: true
targetDb: -1
replayTransaction: true
keepaliveTicker: 100s
redis:
addresses: [目的IP:6379]
type: standalone
userName: 帳號
password: 密碼
log:
level: info
handler:
file:
fileName: /usr/local/redis/redisgunyu4/log/stdout.log
maxSize: 2048
maxBackups: 7
maxAge: 7
來源的key:
# Keyspace
db0:keys=5,expires=0,avg_ttl=0
db1:keys=20,expires=0,avg_ttl=0
db7:keys=1,expires=0,avg_ttl=0
db8:keys=3,expires=3,avg_ttl=22447761400
db9:keys=1,expires=0,avg_ttl=0
db10:keys=506147,expires=506147,avg_ttl=2165178393
db13:keys=68,expires=68,avg_ttl=20596676700
db14:keys=10481,expires=10479,avg_ttl=5068819
Metadata
Metadata
Assignees
Labels
No labels