dm-test.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # This is a TOML config file.
  2. [httpClient]
  3. key = "53e2fa226f5ad348"
  4. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  5. dial = "1s"
  6. timeout = "1s"
  7. keepAlive = "60s"
  8. timer = 1000
  9. [httpClient.breaker]
  10. window = "3s"
  11. sleep = "100ms"
  12. bucket = 10
  13. ratio = 0.5
  14. request = 100
  15. [httpFigure]
  16. infoURL = "http://uat-api.bilibili.co/x/internal/figure/info"
  17. key = "89ffc6e896106fd3"
  18. secret = "1359cdbaf9ff6e2f9b6251579d966101"
  19. dial = "1s"
  20. timeout = "1s"
  21. keepAlive = "60s"
  22. timer = 1000
  23. [httpFigure.breaker]
  24. window = "3s"
  25. sleep = "100ms"
  26. bucket = 10
  27. ratio = 0.5
  28. request = 100
  29. [HTTPServer]
  30. addr = "0.0.0.0:6214"
  31. maxListen = 1000
  32. timeout = "1s"
  33. readTimeout = "800ms"
  34. writeTimeout = "800ms"
  35. [host]
  36. api = "http://uat-api.bilibili.co"
  37. archive = "http://uat-archive.api.bilibili.co"
  38. message = "http://message.bilibili.co"
  39. [db]
  40. [db.dm]
  41. addr = "172.16.33.205:3308"
  42. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_dm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  43. active = 10
  44. idle = 5
  45. idleTimeout ="4h"
  46. queryTimeout = "200ms"
  47. execTimeout = "200ms"
  48. tranTimeout = "200ms"
  49. [db.dm.breaker]
  50. window = "3s"
  51. sleep = "100ms"
  52. bucket = 10
  53. ratio = 0.5
  54. request = 100
  55. [db.dmMetaReader]
  56. addr = "172.16.33.205:3310"
  57. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  58. active = 10
  59. idle = 5
  60. idleTimeout ="4h"
  61. queryTimeout = "500ms"
  62. execTimeout = "500ms"
  63. tranTimeout = "500ms"
  64. [db.dmMetaReader.breaker]
  65. window = "3s"
  66. sleep = "100ms"
  67. bucket = 10
  68. ratio = 0.5
  69. request = 100
  70. [db.dmwriter]
  71. addr = "172.16.33.205:3310"
  72. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  73. active = 10
  74. idle = 5
  75. idleTimeout ="4h"
  76. queryTimeout = "500ms"
  77. execTimeout = "500ms"
  78. tranTimeout = "500ms"
  79. [db.dmwriter.breaker]
  80. window = "3s"
  81. sleep = "100ms"
  82. bucket = 10
  83. ratio = 0.5
  84. request = 100
  85. [redis]
  86. [redis.dm]
  87. name = "dm/dm"
  88. proto = "tcp"
  89. addr = "172.16.33.54:6379"
  90. idle = 5
  91. active = 10
  92. dialTimeout = "1s"
  93. readTimeout = "1s"
  94. writeTimeout = "1s"
  95. idleTimeout = "10s"
  96. dmidExpire = "1h"
  97. indexExpire = "1h"
  98. lockExpire = "10s"
  99. videoExpire = "1h"
  100. [archiveRPC]
  101. group = "uat"
  102. timeout = "1s"
  103. [accountRPC]
  104. group = "v7"
  105. timeout = "1s"
  106. [assistRPC]
  107. group="uat"
  108. timeout = "1s"
  109. [dmRPC]
  110. timeout = "1s"
  111. [dmReport]
  112. count = 3
  113. mcKey = "1_6_5"
  114. msgURL = "http://message.bilibili.com/api/notify/send.user.notify.do"
  115. [databus]
  116. key = "170e302355453683"
  117. secret = "51b66df3ebeca2b08f0017f350b6f0ce"
  118. group = "DMReport-MainCommunity-P"
  119. topic = "DMReport-T"
  120. action = "pub"
  121. name = "dm"
  122. proto = "tcp"
  123. addr = "172.16.33.158:6205"
  124. idle = 1
  125. active = 5
  126. dialTimeout = "1s"
  127. readTimeout = "1s"
  128. writeTimeout = "1s"
  129. idleTimeout = "10s"
  130. [antispam]
  131. on=true
  132. second=4
  133. n=1
  134. hour=12
  135. m=1000
  136. [antispam.redis]
  137. name = "dm/dm"
  138. proto = "tcp"
  139. addr = "172.16.33.54:6379"
  140. idle = 5
  141. active = 10
  142. dialTimeout = "1s"
  143. readTimeout = "1s"
  144. writeTimeout = "1s"
  145. idleTimeout = "10s"
  146. [es]
  147. host="http://uat-manager.bilibili.co"
  148. [es.httpClient]
  149. key="3c4e41f926e51656"
  150. secret="26a2095b60c24154521d24ae62b885bb"
  151. timeout = "8s"
  152. dial = "1s"