59 lines
1.2 KiB
TOML
59 lines
1.2 KiB
TOML
|
# This is a TOML document. Boom
|
||
|
|
||
|
version = "1.0.0"
|
||
|
user = "root"
|
||
|
pid = "/tmp/live-wallet-job.pid"
|
||
|
dir = "./"
|
||
|
family = "/live-wallet"
|
||
|
perf = "0.0.0.0:20202"
|
||
|
address = ""
|
||
|
env = "dev"
|
||
|
|
||
|
[log]
|
||
|
dir = "/data/log/live-wallet-job"
|
||
|
|
||
|
[db]
|
||
|
[db.wallet]
|
||
|
addr = "172.16.33.69:3306"
|
||
|
dsn = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.33.69:3306)/live_wallet?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
|
||
|
active = 5
|
||
|
idle = 5
|
||
|
queryTimeout = "1s"
|
||
|
execTimeout = "1s"
|
||
|
tranTimeout = "2s"
|
||
|
[db.wallet.breaker]
|
||
|
window = "3s"
|
||
|
sleep = "100ms"
|
||
|
bucket = 10
|
||
|
ratio = 0.5
|
||
|
request = 100
|
||
|
|
||
|
[memcache]
|
||
|
walletExpire = "3s"
|
||
|
[memcache.wallet]
|
||
|
name = "live-wallet-service/wallet"
|
||
|
proto = "tcp"
|
||
|
addr = "172.16.33.251:11211"
|
||
|
idle = 5
|
||
|
active = 10
|
||
|
dialTimeout = "1s"
|
||
|
readTimeout = "1s"
|
||
|
writeTimeout = "1s"
|
||
|
idleTimeout = "80s"
|
||
|
|
||
|
[userSub]
|
||
|
key = "ec4c0820d525d67b"
|
||
|
secret = "2bdf3bd4ecab041b5d5640a1da4f7f81"
|
||
|
group = "LiveUserBinlog-LiveLive-S"
|
||
|
topic = "LiveUserBinlog-T"
|
||
|
action = "sub"
|
||
|
offset = "new"
|
||
|
name = "liveuser-wallet/user-sub"
|
||
|
proto = "tcp"
|
||
|
addr = "172.16.33.154:6205"
|
||
|
idle = 100
|
||
|
active = 100
|
||
|
dialTimeout = "1s"
|
||
|
readTimeout = "60s"
|
||
|
writeTimeout = "1s"
|
||
|
idleTimeout = "10s"
|