test.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [log]
  2. stdout = true
  3. # dir = "./log/bbq"
  4. v = 15
  5. [grpc]
  6. timeout = "500ms"
  7. addr = "0.0.0.0:9004"
  8. [bm]
  9. addr = "0.0.0.0:8802"
  10. timeout = "2s"
  11. [mysql]
  12. addr = "172.16.38.91:3306"
  13. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  15. active = 20
  16. idle = 10
  17. idleTimeout ="4h"
  18. queryTimeout = "800ms"
  19. execTimeout = "800ms"
  20. tranTimeout = "1000ms"
  21. [redis]
  22. name = "bbq-web"
  23. proto = "tcp"
  24. addr = "172.16.38.91:6379"
  25. idle = 10
  26. active = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "1m"
  32. [grpcClient]
  33. [grpcClient.account]
  34. addr = "discovery://default/account.service"
  35. [grpcClient.account.wardenconf]
  36. dial = "100ms"
  37. timeout = "500ms"
  38. [grpcClient.notice]
  39. addr = "discovery://default/bbq.service.notice"
  40. [grpcClient.notice.wardenconf]
  41. dial = "3000ms"
  42. timeout = "5000ms"
  43. [grpcClient.filter]
  44. addr = "discovery://default/filter.service"
  45. [grpcClient.filter.wardenconf]
  46. dial = "100ms"
  47. timeout = "500ms"
  48. [databus]
  49. [databus.bfs]
  50. key = "36ff3e402f7c310a"
  51. secret = "dbd11b140486dc0bc263cf7ec540186c"
  52. group = "Bfs-Yellow-Res-BbqBbq-S"
  53. topic = "Bfs-Yellow-Res-T"
  54. action = "sub"
  55. buffer = 1024
  56. name = "history"
  57. proto = "tcp"
  58. addr = "172.22.33.174:6205"
  59. idle = 1
  60. active = 1
  61. dialTimeout = "1s"
  62. readTimeout = "60s"
  63. writeTimeout = "1s"
  64. idleTimeout = "10s"
  65. [databus.bfs.discovery]
  66. domain = "api.bilibili.co"
  67. key = "c8c48e784e05acfb"
  68. secret = "aa63ee0a10afa358d02a07e7abcec546"
  69. region = "sh"
  70. zone = "sh001"
  71. env = "uat"