version = "0.0.1" user = "nobody" family = "video-image" address = "127.0.0.1" env = "dev" [mysql] addr = "127.0.0.1:3306" dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4" readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"] active = 20 idle = 10 idleTimeout ="4h" queryTimeout = "100ms" execTimeout = "100ms" tranTimeout = "200ms" [bm] [bm.server] addr = "0.0.0.0:9018" timeout = "1s" [bm.client] key = "654af11b5df0c9d3" secret = "a7512b8b243b82f4bdb72cf2824b3f8e" dial = "500ms" timeout = "30s" keepAlive = "60s" timer = 10 [bm.client.breaker] window = "3s" sleep = "100ms" bucket = 10 ratio = 0.5 request = 100 [redis] name = "video-image-service" proto = "tcp" addr = "" idle = 10 active = 10 dialTimeout = "1s" readTimeout = "1s" writeTimeout = "1s" idleTimeout = "10s" expire = "1m" [memcache] name = "video-image-service" proto = "tcp" addr = "" active = 50 idle = 10 dialTimeout = "1s" readTimeout = "1s" writeTimeout = "1s" idleTimeout = "10s" expire = "24h" [log] # dir = "/tmp/log/bbq" stdout = true [url] uatuploadimg = "http://uat-api.bilibili.co/x/internal/upload" uploadimg = "http://api.bilibili.co/x/internal/upload" api="http://api.bilibili.co"