test.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. version = "0.0.1"
  2. user = "nobody"
  3. family = "video-image"
  4. address = "127.0.0.1"
  5. env = "dev"
  6. [mysql]
  7. addr = "127.0.0.1:3306"
  8. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  9. 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"]
  10. active = 20
  11. idle = 10
  12. idleTimeout ="4h"
  13. queryTimeout = "100ms"
  14. execTimeout = "100ms"
  15. tranTimeout = "200ms"
  16. [bm]
  17. [bm.server]
  18. addr = "0.0.0.0:9018"
  19. timeout = "1s"
  20. [bm.client]
  21. key = "654af11b5df0c9d3"
  22. secret = "a7512b8b243b82f4bdb72cf2824b3f8e"
  23. dial = "500ms"
  24. timeout = "30s"
  25. keepAlive = "60s"
  26. timer = 10
  27. [bm.client.breaker]
  28. window = "3s"
  29. sleep = "100ms"
  30. bucket = 10
  31. ratio = 0.5
  32. request = 100
  33. [redis]
  34. name = "video-image-service"
  35. proto = "tcp"
  36. addr = ""
  37. idle = 10
  38. active = 10
  39. dialTimeout = "1s"
  40. readTimeout = "1s"
  41. writeTimeout = "1s"
  42. idleTimeout = "10s"
  43. expire = "1m"
  44. [memcache]
  45. name = "video-image-service"
  46. proto = "tcp"
  47. addr = ""
  48. active = 50
  49. idle = 10
  50. dialTimeout = "1s"
  51. readTimeout = "1s"
  52. writeTimeout = "1s"
  53. idleTimeout = "10s"
  54. expire = "24h"
  55. [log]
  56. # dir = "/tmp/log/bbq"
  57. stdout = true
  58. [url]
  59. uatuploadimg = "http://uat-api.bilibili.co/x/internal/upload"
  60. uploadimg = "http://api.bilibili.co/x/internal/upload"
  61. api="http://api.bilibili.co"