test.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. [log]
  2. # dir = "/tmp/log/bbq-service"
  3. stdout=true
  4. v = 5
  5. [grpc]
  6. timeout = "500ms"
  7. addr = "0.0.0.0:9005"
  8. [bm]
  9. [bm.server]
  10. addr = "0.0.0.0:8802"
  11. timeout = "1s"
  12. [bm.client]
  13. key = "654af11b5df0c9d3"
  14. secret = "a7512b8b243b82f4bdb72cf2824b3f8e"
  15. dial = "500ms"
  16. timeout = "30s"
  17. keepAlive = "60s"
  18. timer = 10
  19. [bm.client.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [mysql]
  26. #addr = "127.0.0.1:3306"
  27. #dsn = "root:123456@tcp(127.0.0.1:3306)/bbq?allowNativePasswords=true&timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  28. #readDSN = ["root:123456@tcp(127.0.0.2:3306)/bbq?allowNativePasswords=true&timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  29. addr = "172.16.38.91:3306"
  30. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  31. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  32. active = 20
  33. idle = 50
  34. idleTimeout ="4h"
  35. queryTimeout = "1000ms"
  36. execTimeout = "1000ms"
  37. tranTimeout = "2000ms"
  38. [cmsmysql]
  39. addr = "172.16.38.91:3306"
  40. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq_cms?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  41. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq_cms?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  42. active = 20
  43. idle = 50
  44. idleTimeout ="4h"
  45. queryTimeout = "1000ms"
  46. execTimeout = "1000ms"
  47. tranTimeout = "2000ms"
  48. [redis]
  49. name = "bbq-web"
  50. proto = "tcp"
  51. addr = "172.16.38.91:6379"
  52. idle = 10
  53. active = 10
  54. dialTimeout = "1s"
  55. readTimeout = "1s"
  56. writeTimeout = "1s"
  57. idleTimeout = "10s"
  58. expire = "1m"
  59. [berserker]
  60. [berserker.key]
  61. [berserker.key.yyc]
  62. appkey = "dcf555f4f314ccdfad7cb8a3288f1643"
  63. secret = "4efd3443561e66832b3ba9128a1ad720"
  64. [berserker.key.hsc]
  65. appkey = "0bcf67ecf921576350a4f916c1edecbf"
  66. secret = "1003e5a9babe66ef6834fe839ce8223f"
  67. [berserker.key.lzq]
  68. appkey = "e51d04f43e9c9bca8678dcb4586c76db"
  69. secret = "7c53bf6d17c2d51253b927bc057abeae"
  70. [berserker.api]
  71. rankmonthly = "http://berserker.bilibili.co/avenger/api/92/query"
  72. rankdaily = "http://berserker.bilibili.co/avenger/api/102/query"
  73. userdmg = "http://berserker.bilibili.co/avenger/api/98/query"
  74. operaonce = "http://berserker.bilibili.co/avenger/api/121/query"
  75. [grpcClient]
  76. [grpcClient.account]
  77. addr = "discovery://default/account.service"
  78. [grpcClient.account.wardenconf]
  79. dial = "1s"
  80. timeout = "2s"
  81. [grpcClient.archive]
  82. addr = "discovery://default/archive.service"
  83. [grpcClient.archive.wardenconf]
  84. dial = "100ms"
  85. timeout = "500ms"
  86. [grpcClient.bvcplay]
  87. addr = "172.16.39.21:14500"
  88. [grpcClient.bvcplay.wardenconf]
  89. dial = "3000ms"
  90. timeout = "5000ms"
  91. [urls]
  92. bvc_push="http://172.18.33.140:7703/api/v1/task/push/bbq"
  93. [databus]
  94. [databus.cms]
  95. key = "36ff3e402f7c310a"
  96. secret = "dbd11b140486dc0bc263cf7ec540186c"
  97. group = "BBQCms-BbqBbq-P"
  98. topic = "BBQCms-T"
  99. action = "pub"
  100. buffer = 1024
  101. name = "history"
  102. proto = "tcp"
  103. addr = "172.22.33.174:6205"
  104. idle = 1
  105. active = 1
  106. dialTimeout = "1s"
  107. readTimeout = "60s"
  108. writeTimeout = "1s"
  109. idleTimeout = "10s"
  110. [databus.cms.discovery]
  111. domain = "uat-api.bilibili.co"
  112. key = "c8c48e784e05acfb"
  113. secret = "aa63ee0a10afa358d02a07e7abcec546"
  114. region = "sh"
  115. zone = "sh001"
  116. env = "uat"
  117. [databus.archive]
  118. key = "36ff3e402f7c310a"
  119. secret = "dbd11b140486dc0bc263cf7ec540186c"
  120. group = "ArchiveNotify-BbqBbq-BbqBiliArchiveNotify-S"
  121. topic = "ArchiveNotify-T"
  122. action = "sub"
  123. buffer = 1024
  124. name = "history"
  125. proto = "tcp"
  126. addr = "172.22.33.174:6205"
  127. idle = 1
  128. active = 1
  129. dialTimeout = "1s"
  130. readTimeout = "60s"
  131. writeTimeout = "1s"
  132. idleTimeout = "10s"
  133. [databus.archive.discovery]
  134. domain = "api.bilibili.co"
  135. key = "c8c48e784e05acfb"
  136. secret = "aa63ee0a10afa358d02a07e7abcec546"
  137. region = "sh"
  138. zone = "sh001"
  139. env = "uat"
  140. [bpscode]
  141. [bpscode.720p]
  142. 2m=130
  143. 1m=129
  144. [bpscode.540p]
  145. 2m=128
  146. 1m=127
  147. [upload]
  148. [upload.file]
  149. prefix= "0"
  150. line = "ws"
  151. [upload.endpoint]
  152. main = "//upos-hz-uat.acgvideo.com"
  153. backup = "//upos-hz-uat.acgvideo.com"
  154. [upload.auth]
  155. ak = "1494471752"
  156. sk = "3c3989e9e0f4e64d9c817be4caf8a9c1"