test.toml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. [log]
  2. # dir = "/tmp/log/bbq"
  3. stdout = true
  4. [download]
  5. file = "/data/"
  6. [bm]
  7. [bm.server]
  8. addr = "0.0.0.0:9999"
  9. timeout = "1s"
  10. [bm.client]
  11. key = "c8c48e784e05acfb"
  12. secret = "aa63ee0a10afa358d02a07e7abcec546"
  13. dial = "1000ms"
  14. timeout = "30s"
  15. keepAlive = "60s"
  16. timer = 10
  17. [bm.client.breaker]
  18. window = "3s"
  19. sleep = "1000ms"
  20. bucket = 10
  21. ratio = 0.5
  22. request = 100
  23. [mysql]
  24. addr = "172.16.38.91:3306"
  25. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  26. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  27. active = 10
  28. idle = 10
  29. idleTimeout ="4h"
  30. queryTimeout = "1000ms"
  31. execTimeout = "2000ms"
  32. tranTimeout = "2000ms"
  33. [mysqlcms]
  34. addr = "172.16.38.91:3306"
  35. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq_cms?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  36. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq_cms?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  37. active = 10
  38. idle = 10
  39. idleTimeout ="4h"
  40. queryTimeout = "1000ms"
  41. execTimeout = "2000ms"
  42. tranTimeout = "2000ms"
  43. [redis]
  44. name = "video-job"
  45. proto = "tcp"
  46. addr = "172.16.38.91:6379"
  47. idle = 10
  48. active = 10
  49. dialTimeout = "1s"
  50. readTimeout = "1s"
  51. writeTimeout = "1s"
  52. idleTimeout = "10s"
  53. expire = "1m"
  54. [bfredis]
  55. name = "video-job-bloomfilter"
  56. proto = "tcp"
  57. addr = "172.16.38.91:6379"
  58. idle = 10
  59. active = 10
  60. dialTimeout = "1s"
  61. readTimeout = "1s"
  62. writeTimeout = "1s"
  63. idleTimeout = "10s"
  64. expire = "1m"
  65. [memcache]
  66. name = "video-job"
  67. proto = "tcp"
  68. addr = ""
  69. active = 50
  70. idle = 10
  71. dialTimeout = "1s"
  72. readTimeout = "1s"
  73. writeTimeout = "1s"
  74. idleTimeout = "10s"
  75. expire = "24h"
  76. [grpcClient]
  77. [grpcClient.video]
  78. addr = "discovery://default/bbq.service.video"
  79. [grpcClient.video.wardenconf]
  80. dial = "300ms"
  81. timeout = "2s"
  82. [grpcClient.search]
  83. addr = "discovery://default/bbq.service.search"
  84. [grpcClient.search.wardenconf]
  85. dial = "100ms"
  86. timeout = "500ms"
  87. [grpcClient.account]
  88. addr = "discovery://default/account.service"
  89. [grpcClient.account.wardenconf]
  90. dial = "1s"
  91. timeout = "2s"
  92. [grpcClient.notice]
  93. addr = "discovery://default/bbq.service.notice"
  94. [grpcClient.notice.wardenconf]
  95. dial = "3000ms"
  96. timeout = "5000ms"
  97. [scheduler]
  98. # #每天4点,同步全量视频数据到es
  99. # checkVideo2ES = "0 0 4 * * *"
  100. # #每天0点10分,同步用户画像
  101. # syncUserDmg = "0 30 0 * * *"
  102. # #每天3点00分,同步主站视频库
  103. # SyncVideo = "0 0 3 * * *"
  104. # #每天1点00分,同步主站up主信息
  105. # SyncUpUserDmg = "0 0 1 * * *"
  106. # #心跳测试
  107. # Test = "*/1 * * * * *"
  108. #每1分,视频增量脚本
  109. checkVideo = "0 */1 * * * *"
  110. checkVideoSt = "0 */1 * * * *"
  111. checkVideoStHv = "0 */1 * * * *"
  112. checkVideoTag = "0 */1 * * * *"
  113. checkTag = "0 */1 * * * *"
  114. #运营筛选视频导入,1分钟check一次信号
  115. SyncVideoOper = "0 0 2 * * *"
  116. #同步cms任务
  117. TransToCheckBack = "1 * * * * *"
  118. #每天晚上9点更新userbase
  119. SyncUsrSta = "0 30 21 * * *"
  120. # checkVideo = "0 */1 * * * *"
  121. # checkVideoSt = "0 */1 * * * *"
  122. # checkVideoStHv = "0 */1 * * * *"
  123. # checkVideoTag = "0 */1 * * * *"
  124. # checkTag = "0 */1 * * * *"
  125. # #运营筛选视频导入,1分钟check一次信号
  126. # SyncVideoOper = "0 0 2 * * *"
  127. # #同步cms任务
  128. # DeliveryNewVideoToCms = "0 0 3 * * *"
  129. ## 去重BloomFilter重建
  130. videoViewHistory = "0 */1 * * * *"
  131. # 系统消息任务
  132. SysMsgTask = "0 */1 * * * *"
  133. ## UsrProfileBbq
  134. UserProfileBbq = "0 0 9 * * *"
  135. [berserker]
  136. [berserker.key]
  137. [berserker.key.yyc]
  138. appkey = "dcf555f4f314ccdfad7cb8a3288f1643"
  139. secret = "4efd3443561e66832b3ba9128a1ad720"
  140. [berserker.key.hsc]
  141. appkey = "0bcf67ecf921576350a4f916c1edecbf"
  142. secret = "1003e5a9babe66ef6834fe839ce8223f"
  143. [berserker.key.lzq]
  144. appkey = "e51d04f43e9c9bca8678dcb4586c76db"
  145. secret = "7c53bf6d17c2d51253b927bc057abeae"
  146. [berserker.key.lj]
  147. appkey = "4ddb82b57e863ebd888713061a08ba10"
  148. secret = "49c4e3eb4fd8aff9d3862447113e032f"
  149. [berserker.key.dw]
  150. appkey = "66ed588a742c72408bc2d876afa8f7ca"
  151. secret = "7d7a63e37fe6af52a58fb4755b62360e"
  152. [berserker.key.hm]
  153. appkey = "0b685519ff66471faf3f000cc67661eb"
  154. secret = "e345a3281f0009b51016fab9a9076877"
  155. [berserker.api]
  156. rankmonthly = "http://berserker.bilibili.co/avenger/api/92/query"
  157. rankdaily = "http://berserker.bilibili.co/avenger/api/102/query"
  158. userdmg = "http://berserker.bilibili.co/avenger/api/137/query"
  159. upuserdmg = "http://berserker.bilibili.co/avenger/api/125/query"
  160. operaonce = "http://berserker.bilibili.co/avenger/api/121/query"
  161. userbasic = "http://berserker.bilibili.co/avenger/api/147/query"
  162. upmid = "http://berserker.bilibili.co/avenger/api/149/query"
  163. videoView = "http://berserker.bilibili.co/avenger/api/154/query"
  164. UserProfile = "http://berserker.bilibili.co/avenger/api/178/query"
  165. UserProfileBuvid = "http://berserker.bilibili.co/avenger/api/186/query"
  166. [tagmap]
  167. [tagmap.tagtidmap]
  168. 1 = "动画"
  169. 3 = "音乐"
  170. 4 = "游戏"
  171. 5 = "娱乐"
  172. 11 = "电视剧"
  173. 13 = "番剧"
  174. 23 = "电影"
  175. 36 = "科技"
  176. 119 = "鬼畜"
  177. 129 = "舞蹈"
  178. 155 = "时尚"
  179. 160 = "生活"
  180. 165 = "广告"
  181. 167 = "国创"
  182. 177 = "纪录片"
  183. 181 = "影视"
  184. [tagmap.tagsubtidmap]
  185. 24= "MAD·AMV"
  186. 25= "MMD·3D"
  187. 27= "综合"
  188. 47= "短片·手书·配音"
  189. 28= "原创音乐"
  190. 29= "三次元音乐"
  191. 30= "VOCALOID·UTAU"
  192. 31= "翻唱"
  193. 54= "OP/ED/OST"
  194. 59= "演奏"
  195. 130= "音乐选集"
  196. 17= "单机联机"
  197. 19= "Mugen"
  198. 65= "网络游戏"
  199. 121= "GMV"
  200. 136= "音游"
  201. 171= "电子竞技"
  202. 172= "手机游戏"
  203. 173= "桌游棋牌"
  204. 71= "综艺"
  205. 131= "Korea相关"
  206. 137= "明星"
  207. 185= "国产剧"
  208. 187= "海外剧"
  209. 32= "完结动画"
  210. 33= "连载动画"
  211. 51= "资讯"
  212. 152= "官方延伸"
  213. 83= "其他国家"
  214. 145= "欧美电影"
  215. 146= "日本电影"
  216. 147= "国产电影"
  217. 39= "演讲• 公开课"
  218. 95= "数码"
  219. 96= "星海"
  220. 98= "机械"
  221. 122= "野生技术协会"
  222. 124= "趣味科普人文"
  223. 176= "汽车"
  224. 22= "鬼畜调教"
  225. 26= "音MAD"
  226. 126= "人力VOCALOID"
  227. 127= "教程演示"
  228. 20= "宅舞"
  229. 154= "三次元舞蹈"
  230. 156= "舞蹈教程"
  231. 157= "美妆"
  232. 158= "服饰"
  233. 159= "资讯"
  234. 164= "健身"
  235. 21= "日常"
  236. 75= "动物圈"
  237. 76= "美食圈"
  238. 138= "搞笑"
  239. 161= "手工"
  240. 162= "绘画"
  241. 163= "运动"
  242. 174= "其他"
  243. 175= "ASMR"
  244. 166= "广告"
  245. 153= "国产动画"
  246. 168= "国产原创相关"
  247. 169= "布袋戏"
  248. 170= "资讯"
  249. 37= "人文历史"
  250. 178= "科学探索"
  251. 179= "热血军事"
  252. 180= "舌尖上的旅行"
  253. 85= "短片"
  254. 86= "特摄"
  255. 182= "影视杂谈"
  256. 183= "影视剪辑"
  257. 184= "预告·资讯"
  258. [databus]
  259. [databus.videosub]
  260. key = "36ff3e402f7c310a"
  261. secret = "dbd11b140486dc0bc263cf7ec540186c"
  262. group = "BBQVideo-BbqBbq-S"
  263. topic = "BBQVideo-T"
  264. action = "sub"
  265. buffer = 1024
  266. name = "app-job/video"
  267. proto = "tcp"
  268. addr = "172.22.33.174:6205 "
  269. idle = 1
  270. active = 1
  271. dialTimeout = "1s"
  272. readTimeout = "60s"
  273. writeTimeout = "1s"
  274. idleTimeout = "10s"
  275. [databus.videosub.discovery]
  276. domain = "uat-api.bilibili.co"
  277. key = "c8c48e784e05acfb"
  278. secret = "aa63ee0a10afa358d02a07e7abcec546"
  279. region = "sh"
  280. zone = "sh001"
  281. env = "uat"
  282. [databus.videorep]
  283. key = "36ff3e402f7c310a"
  284. secret = "dbd11b140486dc0bc263cf7ec540186c"
  285. group = "BBQVideoRep-BbqBbq-S"
  286. topic = "BBQVideoRep-T"
  287. action = "sub"
  288. buffer = 1024
  289. name = "history"
  290. proto = "tcp"
  291. addr = "172.22.33.174:6205 "
  292. idle = 1
  293. active = 1
  294. dialTimeout = "1s"
  295. readTimeout = "60s"
  296. writeTimeout = "1s"
  297. idleTimeout = "10s"
  298. [databus.videorep.discovery]
  299. domain = "uat-api.bilibili.co"
  300. key = "c8c48e784e05acfb"
  301. secret = "aa63ee0a10afa358d02a07e7abcec546"
  302. region = "sh"
  303. zone = "sh001"
  304. env = "uat"
  305. [databus.bvcsub]
  306. key = "36ff3e402f7c310a"
  307. secret = "dbd11b140486dc0bc263cf7ec540186c"
  308. group = "BBQCms-BbqBbq-S"
  309. topic = "BBQCms-T"
  310. action = "sub"
  311. buffer = 1024
  312. name = "history"
  313. proto = "tcp"
  314. addr = "172.22.33.174:6205"
  315. idle = 1
  316. active = 1
  317. dialTimeout = "1s"
  318. readTimeout = "60s"
  319. writeTimeout = "1s"
  320. idleTimeout = "10s"
  321. [databus.bvcsub.discovery]
  322. domain = "uat-api.bilibili.co"
  323. key = "c8c48e784e05acfb"
  324. secret = "aa63ee0a10afa358d02a07e7abcec546"
  325. region = "sh"
  326. zone = "sh001"
  327. env = "uat"
  328. [mail]
  329. host = "smtp.exmail.qq.com"
  330. port = 465
  331. from = "jiangdongqi@bilibili.com"
  332. password = "l"
  333. to = ["jiangdongqi@bilibili.com"]
  334. [urls]
  335. reply_reg = "http://uat-api.bilibili.co/x/internal/v2/reply/subject/regist"
  336. account = "http://uat-api.bilibili.co/x/internal/v3/account/info"
  337. bvc_push = "http://127.0.0.1:8802/bbq/internal/sv/trans/commit"
  338. [ftp]
  339. addr = "172.16.33.203:21"
  340. user = "work"
  341. password = "MhxzKhl"
  342. [ftp.remotepath]
  343. search = "/home/work/open/%s"
  344. timeout = "1000ms"
  345. [ftp.localpath]
  346. search = "/tmp/"
  347. [vst]
  348. tmpstatus = -3
  349. [path]
  350. cids="/Users/Cheney/go/src/go-common/app/job/bbq/video/cmd/cids"
  351. [subbvccontrol]
  352. control = 1