videoup-report-job.toml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. # This is a TOML document. Boom.
  2. [host]
  3. data = "http://data-test.bilibili.co"
  4. api = "http://api.bilibili.co"
  5. archive = "http://uat-archive.api.bilibili.co"
  6. profit = "http://up-profit.bilibili.co"
  7. www = "http://www.bilibili.com"
  8. [xlog]
  9. dir = "/data/log/videoup-report-job/"
  10. [xlog.elk]
  11. project = "videoup-report-job"
  12. addr = "172.18.20.17:8520"
  13. chanSize = 10240
  14. [archiveSub]
  15. key = "0Pub71WwEMKXu63qtztu"
  16. secret = "0Pub71WwEMKXu63qtztv"
  17. group = "ArchiveBinlog-ReportJob-S"
  18. topic = "Archive-T"
  19. action = "sub"
  20. name = "videoup-report-job/archivesub"
  21. proto = "tcp"
  22. addr = "172.16.33.158:6205"
  23. idle = 100
  24. active = 100
  25. dialTimeout = "1s"
  26. readTimeout = "60s"
  27. writeTimeout = "1s"
  28. idleTimeout = "10s"
  29. [archiveResultSub]
  30. key = "0Pub71WwEMKXu63qtztu"
  31. secret = "0Pub71WwEMKXu63qtztv"
  32. group = "ArchiveNotify-MainArchive-ReportJob-S"
  33. topic = "ArchiveNotify-T"
  34. action = "sub"
  35. name = "videoup-report-job/archive-result-sub"
  36. proto = "tcp"
  37. addr = "172.18.33.50:6205"
  38. idle = 100
  39. active = 100
  40. dialTimeout = "1s"
  41. readTimeout = "60s"
  42. writeTimeout = "1s"
  43. idleTimeout = "10s"
  44. [videoupSub]
  45. key = ""
  46. secret = ""
  47. group = "Videoup2Bvc-MainArchive-ReportJob-S"
  48. topic = "Videoup2Bvc"
  49. action = "sub"
  50. offset = "old"
  51. buffer = 128
  52. name = "videoup-job/bvc-sub"
  53. proto = "tcp"
  54. addr = "172.18.33.50:6205"
  55. active = 1
  56. idle = 1
  57. dialTimeout = "1s"
  58. readTimeout = "60s"
  59. writeTimeout = "1s"
  60. idleTimeout = "10s"
  61. [managerDBSub]
  62. key = ""
  63. secret = ""
  64. group = "ManagerBinLog-MainArchive-S"
  65. topic = "ManagerBinLog-T"
  66. action = "sub"
  67. name = "videoup-report-job/databus"
  68. proto = "tcp"
  69. addr = "172.18.33.50:6205"
  70. active = 1
  71. idle = 1
  72. dialTimeout = "1s"
  73. readTimeout = "60s"
  74. writeTimeout = "1s"
  75. idleTimeout = "10s"
  76. [app]
  77. key = "c05dd4e1638a8af0"
  78. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  79. [httpClient]
  80. [httpClient.read]
  81. key = "6aa4286456d16b97"
  82. secret = "351cf022e1ae8296109c3c524faafcc8"
  83. dial = "1s"
  84. timeout = "1s"
  85. keepAlive = "60s"
  86. timer = 1000
  87. [httpClient.read.breaker]
  88. window = "10s"
  89. sleep = "100ms"
  90. bucket = 10
  91. ratio = 0.5
  92. request = 100
  93. [httpClient.write]
  94. key = "6aa4286456d16b97"
  95. secret = "351cf022e1ae8296109c3c524faafcc8"
  96. dial = "50s"
  97. timeout = "3s"
  98. keepAlive = "60s"
  99. timer = 1000
  100. [httpClient.write.breaker]
  101. window = "10s"
  102. sleep = "100ms"
  103. bucket = 10
  104. ratio = 0.5
  105. request = 100
  106. [bm]
  107. addr = "0.0.0.0:6791"
  108. maxListen = 1000
  109. timeout = "1s"
  110. [db]
  111. [db.archive]
  112. name = "172.16.33.54:3306"
  113. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  114. readDSN = ["test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  115. active = 5
  116. idle = 2
  117. queryTimeout = "10s"
  118. execTimeout = "10s"
  119. tranTimeout = "10s"
  120. [db.archive.breaker]
  121. window = "3s"
  122. sleep = "100ms"
  123. bucket = 10
  124. ratio = 0.5
  125. request = 100
  126. [db.manager]
  127. name = "172.16.33.54:3306"
  128. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  129. active = 5
  130. idle = 2
  131. idleTimeout ="4h"
  132. queryTimeout = "100ms"
  133. execTimeout = "100ms"
  134. tranTimeout = "200ms"
  135. [db.manager.breaker]
  136. window = "3s"
  137. sleep = "100ms"
  138. bucket = 10
  139. ratio = 0.5
  140. request = 100
  141. [redis]
  142. [redis.track]
  143. name = "video-admin/track"
  144. proto = "tcp"
  145. addr = "172.16.33.54:6381"
  146. idle = 10
  147. active = 10
  148. dialTimeout = "1s"
  149. readTimeout = "1s"
  150. writeTimeout = "1s"
  151. idleTimeout = "10s"
  152. expire = "10s"
  153. [redis.mail]
  154. name = "video-admin/track"
  155. proto = "tcp"
  156. addr = "172.16.33.54:6381"
  157. idle = 10
  158. active = 10
  159. dialTimeout = "1s"
  160. readTimeout = "1s"
  161. writeTimeout = "1s"
  162. idleTimeout = "10s"
  163. [redis.secondary]
  164. name = "videoup-report-job/secondary"
  165. proto = "unix"
  166. addr = "172.22.33.137:6835"
  167. active = 10
  168. idle = 2
  169. dialTimeout = "1s"
  170. readTimeout = "1s"
  171. writeTimeout = "1s"
  172. idleTimeout = "80s"
  173. [archiveRPCGroup2]
  174. timeout = "1s"
  175. [hbase]
  176. master = ""
  177. meta = ""
  178. dialTimeout = "5s"
  179. readTimeout = "10s"
  180. readsTimeout = "10s"
  181. writeTimeout = "10s"
  182. writesTimeout = "10s"
  183. [hbase.zookeeper]
  184. root = ""
  185. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  186. timeout = "30s"
  187. [tagDisRPC]
  188. timeout = "1s"
  189. [mail]
  190. host = "smtp.exmail.qq.com"
  191. port = 465
  192. username = "2333@bilibili.com"
  193. password = "2333"
  194. speedThreshold = 3
  195. overspeedThreshold = 2
  196. [[mail.addr]]
  197. type = "4"
  198. desc = "游戏"
  199. addr = []
  200. [[mail.addr]]
  201. type = "11"
  202. desc = "电视剧"
  203. addr = []
  204. [[mail.addr]]
  205. type = "1"
  206. desc = "动画"
  207. addr = []
  208. [[mail.addr]]
  209. type = "23"
  210. desc = "电影"
  211. addr = []
  212. [[mail.addr]]
  213. type = "119"
  214. desc = "鬼畜"
  215. addr = []
  216. [[mail.addr]]
  217. type = "155"
  218. desc = "时尚"
  219. addr = []
  220. [[mail.addr]]
  221. type = "160"
  222. desc = "生活"
  223. addr = []
  224. [[mail.addr]]
  225. type = "36"
  226. desc = "科技"
  227. addr = []
  228. [[mail.addr]]
  229. type = "5"
  230. desc = "娱乐"
  231. addr = []
  232. [[mail.addr]]
  233. type = "3"
  234. desc = "音乐"
  235. addr = []
  236. [[mail.addr]]
  237. type = "129"
  238. desc = "舞蹈"
  239. addr = []
  240. [[mail.addr]]
  241. type = "13"
  242. desc = "番剧"
  243. addr = []
  244. [[mail.addr]]
  245. type = "167"
  246. desc = "国创"
  247. addr = []
  248. [[mail.addr]]
  249. type = "181"
  250. desc = "影视"
  251. addr = []
  252. [[mail.addr]]
  253. type = "177"
  254. desc = "纪录片"
  255. addr = []
  256. [[mail.addr]]
  257. type = "signed"
  258. desc = "签约up主"
  259. addr = []
  260. [[mail.privateAddr]]
  261. type = "155"
  262. desc = "时尚"
  263. addr = []
  264. [[mail.privateAddr]]
  265. type = "160"
  266. desc = "生活"
  267. addr = []
  268. [[mail.privateAddr]]
  269. type = "119"
  270. desc = "鬼畜"
  271. addr = []
  272. [[mail.privateAddr]]
  273. type = "36"
  274. desc = "科技"
  275. addr = []
  276. [[mail.privateAddr]]
  277. type = "3"
  278. desc = "音乐"
  279. addr = []
  280. [[mail.privateAddr]]
  281. type = "129"
  282. desc = "舞蹈"
  283. addr = []
  284. [[mail.privateAddr]]
  285. type = "4"
  286. desc = "游戏"
  287. addr = []
  288. [[mail.privateAddr]]
  289. type = "181"
  290. desc = "影视"
  291. addr = []
  292. [[mail.privateAddr]]
  293. type = "1"
  294. desc = "动画"
  295. addr = []
  296. [[mail.privateAddr]]
  297. type = "CC"
  298. desc = "抄送列表"
  299. addr = []
  300. [grpc]
  301. [grpc.accRPC]
  302. timeout = "1s"
  303. [grpc.upsRPC]
  304. timeout = "1s"