answer-job-test.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [log]
  2. dir = "/data/log/answer-job/"
  3. [bm]
  4. addr = "0.0.0.0:9002"
  5. maxListen = 10
  6. timeout = "1s"
  7. [mysql]
  8. addr = "127.0.0.1:3306"
  9. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_answer?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  10. active = 5
  11. idle = 2
  12. queryTimeout = "100ms"
  13. execTimeout = "100ms"
  14. tranTimeout = "200ms"
  15. [mysql.breaker]
  16. window = "3s"
  17. sleep = "100ms"
  18. bucket = 10
  19. ratio = 0.5
  20. request = 100
  21. [bfs]
  22. timeout="5s"
  23. maxFileSize=5242880
  24. bucket="member"
  25. url="http://test-bfs.bilibili.co/bfs/member/"
  26. method="PUT"
  27. key="3d34b1ea1dbbb0ca"
  28. secret="d4caa344f3b115e302033b05dd0aa4"
  29. host="test-bfs.bilibili.co"
  30. [databus]
  31. [databus.labour]
  32. key = "0QEO9F8JuuIxZzNDvklH"
  33. secret= "0QEO9F8JuuIxZzNDvklI"
  34. group= "MemberExpLog-UGC-S"
  35. topic= "MemberExpLog-T"
  36. action="sub"
  37. name = "figure-job/databus"
  38. proto = "tcp"
  39. addr = "172.16.33.158:6205"
  40. idle = 2
  41. active = 10
  42. dialTimeout = "1s"
  43. readTimeout = "60s"
  44. writeTimeout = "1s"
  45. idleTimeout = "10s"
  46. expire = "1h"
  47. [databus.account]
  48. key = "0QEO9F8JuuIxZzNDvklH"
  49. secret= "0QEO9F8JuuIxZzNDvklI"
  50. group= "MemberExpLog-UGC-S"
  51. topic= "MemberExpLog-T"
  52. action="sub"
  53. name = "figure-job/databus"
  54. proto = "tcp"
  55. addr = "172.16.33.158:6205"
  56. idle = 2
  57. active = 10
  58. dialTimeout = "1s"
  59. readTimeout = "60s"
  60. writeTimeout = "1s"
  61. idleTimeout = "10s"
  62. expire = "1h"
  63. [httpClient]
  64. dial = "500ms"
  65. timeout = "1s"
  66. keepAlive = "60s"
  67. timer = 10
  68. key = "zxnh4k92dwe61t27"
  69. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  70. [httpClient.breaker]
  71. window = "3s"
  72. sleep = "100ms"
  73. bucket = 10
  74. ratio = 0.5
  75. request = 100
  76. [backoff]
  77. maxDelay = 60
  78. baseDelay = 5
  79. factor = 1.6
  80. jitter = 0.2
  81. [properties]
  82. uploadInterval = "10s"
  83. maxRetries = 10
  84. accountIntranetURI = "http://account.bilibili.co"
  85. debug = true
  86. fontFilePath = "/data/yahei.ttf"