1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- version = "3.0.0"
- user = "nobody"
- pid = "/tmp/card-service.pid"
- dir = "./"
- perf = "127.0.0.1:6070"
- [bm]
- addr = "0.0.0.0:7881"
- maxListen = 1000
- timeout = "1s"
- [RPCClient2]
- [mysql]
- addr = "127.0.0.1:3306"
- dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_card?timeout=3s&readTimeout=3s&writeTimeout=3s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
- active = 20
- idle = 10
- idleTimeout ="4h"
- queryTimeout = "1s"
- execTimeout = "1s"
- tranTimeout = "2s"
- [mysql.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [memcache]
- name = "card-service"
- proto = "tcp"
- addr = "172.18.33.60:11234"
- idle = 5
- active = 10
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- expire = "24h"
- [wardenServer]
- addr = "0.0.0.0:6077"
- timeout = "1s"
|