123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- # This is a TOML document. Boom.
- [xlog]
- stdout=true
- [rpcServer2]
- [mysql]
- addr = "172.16.33.205"
- dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_member?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
- active = 5
- idle = 2
- IdleTimeout ="4h"
- queryTimeout = "100ms"
- execTimeout = "100ms"
- tranTimeout = "200ms"
- [mysql.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [accMysql]
- addr = "172.16.33.205:3306"
- dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
- active = 50
- idle = 5
- idleTimeout = "4h"
- queryTimeout = "2s"
- execTimeout = "2s"
- tranTimeout = "2s"
- [accMysql.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [memcache]
- name = "member-service"
- proto = "tcp"
- addr = "172.18.33.61:11219"
- idle = 5
- active = 10
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- [cacheTTL]
- baseTTL = "24h"
- moralTTL = "24h"
- captureTimesTTL = "1h"
- captureCodeTTL = "5m"
- captureErrTimesTTL = "5m"
- applyInfoTTL = "5m"
- [redis]
- name = "member-service"
- proto = "tcp"
- addr = "127.0.0.1:6379"
- idle = 100
- active = 100
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- [httpClient]
- key="7d9f6f6fe2a898e8"
- secret= "4de2ccdbd9db69be0c2c6437bfe6eb69"
- dial = "500ms"
- timeout = "1s"
- keepAlive = "60s"
- timer = 10
- [httpClient.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [databus]
- key = "4ba46ba31f9a44ef"
- secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
- group = "AccountLog-MainAccount-P"
- topic = "AccountLog-T"
- action = "pub"
- name = "member-service/databus"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 100
- active = 100
- dialTimeout = "1s"
- readTimeout = "60s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- [accountnotify]
- key = "4ba46ba31f9a44ef"
- secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
- group = "AccountNotify-MainAccount-P"
- topic = "AccountNotify-T"
- action = "pub"
- buffer = 2048
- name = "account-notify-job/databus"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 1
- active = 1
- dialTimeout = "1s"
- readTimeout = "60s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- [wardenServer]
- addr = "0.0.0.0:9000"
- timeout = "1s"
- [host]
- search="http://uat-bili-search.bilibili.co"
- [realnameProperty]
- imgURLTemplate = "http://uat-manager.bilibili.co/x/admin/member/realname/image/preview?token=%s&border_size=800"
- # block
- [BlockMySQL]
- addr = "172.16.33.205:3306"
- dsn = "bilibili_block:NfAKk5h6ZMkx9o3EZPO2BIX3doCqXy6H@tcp(172.16.33.205:3306)/bilibili_block?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
- active = 20
- idle = 10
- idleTimeout ="4h"
- queryTimeout = "1s"
- execTimeout = "1s"
- tranTimeout = "1s"
- [BlockMemcache]
- name = "block-service"
- proto = "tcp"
- addr = "172.18.33.60:11233"
- idle = 5
- active = 10
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- [blockCacheTTL]
- userTTL = "80m"
- userMaxRate = 20.0
- # 越大延长概率越小
- userT = 0.7
- [BlockProperty]
- msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
- whiteList = [2, 46333]
|