creative-job.toml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. # This is a TOML document. Boom.
  2. consume = false
  3. hotswitch = false
  4. honorSwitch = false
  5. honorStep = 20
  6. honorFlushSpec = "0 0 12 * * 0"
  7. honorMSGSpec = "0 0 19 * * 0"
  8. sendEveryWeek = true
  9. [task]
  10. #扫表任务配置
  11. rowLimit = 12 # 每次从表中取的最大数据量
  12. tableJobNum = 100 # 开启n张表的扫描任务的协程数量
  13. tableConsumeNum = 10 # 开启消费表数据的协程数量
  14. chanSize = 1024 # chan 缓冲长度
  15. switchDatabus = false # 消息qps较小的消费开关
  16. switchHighQPS = false # 播放/点赞等高qps消费开关
  17. databusQueueLen = 500 # 消息qps较小的消费队列长度
  18. statLikeQueueLen = 1000 # 点赞消费队列长度
  19. statViewQueueLen = 2000 # 播放消费队列长度
  20. #过期任务通知
  21. switchMsgNotify = true #开启消息通知
  22. testNotifyMids = "1,2,3,4" #test mids 逗号隔开
  23. taskMsgCode = "1_17_2"
  24. taskTitle = "你的新手任务尚未完成"
  25. taskContent = "亲爱的UP主,你的新手任务尚未完成,快来完成新手任务,领取丰厚礼包吧!请前往web端点击 #{任务成就入口}{\"https://member.bilibili.com/v2#/mission-achieve/taskManage\"} 参与完成哦~"
  26. taskExpireTime = 600 #设置多久过期 单位/s,3600*24*30=2592000 s 对第30天未完成新手任务的UP主,发送消息通知
  27. taskSendHour = 16 #几点发送
  28. taskSendMiniute = 51 #几分发送
  29. taskSendSecond = 5 #几秒发送
  30. taskBatchMidNum = 100 #过期任务通知每次批量发送多个mid
  31. taskTableJobNum = 100 #开启n张表的扫描任务的协程数量
  32. taskRowLimitNum = 100 #每次从表中取的最大数据量
  33. taskTableConsumeNum = 10 # 开启消费表数据的协程数量
  34. #奖品通知
  35. rewardMsgCode = "1_17_3"
  36. rewardTitle = "你当前有待领取的奖励"
  37. rewardContent = "亲爱的UP主,您有新的任务成就礼包待领取,快来领取奖品吧!请前往web端点击 #{任务成就入口}{\"https://member.bilibili.com/v2#/mission-achieve/taskManage\"} 领取哦~"
  38. rewardTableJobNum = 1 #开启n张表的扫描任务的协程数量
  39. rewardRowLimitNum = 100 #每次从表中取的最大数据量
  40. rewardTableConsumeNum = 10 # 开启消费表数据的协程数量
  41. rewardWeek = 1 #设置周几跑奖品通知 0-6 发送时间为每周六的20:00,用户为上周周六18:00 - 本周周六17:59所有达到领取奖励且未领取的用户
  42. rewardLastDay = -30 #从过去多少天开始
  43. rewardLastHour = 0 #从过去开始几点 0-23
  44. rewardLastMiniute = 1 #从过去开始几分 0-59
  45. rewardLastSecond = 0 #从过去开始几秒 0-59
  46. rewardNowHour = 15 #从当前时间几点开始
  47. rewardNowMiniute = 58 #从当前时间几分开始
  48. rewardNowSecond = 5 #从当前时间几秒开始
  49. rewardBatchMidNum = 100 #奖励通知每次批量发送多个mid
  50. rewardSendHour = 0 #基于当前时间往后多少小时发送
  51. rewardSendMiniute = 0 #基于当前时间往后多少分钟发送
  52. rewardSendSecond = 5 #基于当前时间往后多少秒发送
  53. biliMid = 37090048 #哔哩哔哩创作中心公众号
  54. #新手和进阶粉丝数
  55. newFollower = 1
  56. advancedFollower=2
  57. #计数下限
  58. statView = 1
  59. statLike = 1
  60. statReply = 1
  61. statShare = 1
  62. statFav = 1
  63. statCoin = 1
  64. statDM = 1
  65. #计数上限
  66. statViewUp = 3
  67. statLikeUp = 3
  68. statReplyUp = 3
  69. statShareUp = 3
  70. statFavUp = 3
  71. statCoinUp = 3
  72. statDMUp = 3
  73. [host]
  74. message = "http://message.bilibili.co"
  75. api = "http://api.bilibili.co"
  76. videoup = "http://uat-archive.api.bilibili.co"
  77. [log]
  78. dir = "/data/log/creative-job/"
  79. stdout = false
  80. [log.syslog]
  81. project = "creative-job"
  82. chanSize = 10240
  83. [bm]
  84. [bm.outer]
  85. addr = "0.0.0.0:7461"
  86. maxListen = 1000
  87. timeout="1s"
  88. readTimeout="1s"
  89. writeTimeout="1s"
  90. [httpClient]
  91. [httpClient.normal]
  92. key = "b8f239ca38a53308"
  93. secret = "5460ef72fe13c10dfb53442b9111427e"
  94. dial = "500ms"
  95. timeout = "1s"
  96. keepAlive = "60s"
  97. timer = 10
  98. [httpClient.normal.breaker]
  99. window = "10s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [httpClient.slow]
  105. key = "b8f239ca38a53308"
  106. secret = "5460ef72fe13c10dfb53442b9111427e"
  107. dial = "1s"
  108. timeout = "10s"
  109. keepAlive = "60s"
  110. timer = 10
  111. [httpClient.slow.breaker]
  112. window = "10s"
  113. sleep = "100ms"
  114. bucket = 10
  115. ratio = 0.5
  116. request = 100
  117. [db]
  118. [db.creative]
  119. name = "[creative]tcp@172.16.33.205:3308"
  120. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_creative?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  121. active = 5
  122. idle = 5
  123. idleTimeout ="4h"
  124. queryTimeout = "5s"
  125. execTimeout = "5s"
  126. tranTimeout = "5s"
  127. [db.creative.breaker]
  128. window = "3s"
  129. sleep = "100ms"
  130. bucket = 10
  131. ratio = 0.5
  132. request = 100
  133. [hbaseOld]
  134. master = ""
  135. meta = ""
  136. dialTimeout = "1s"
  137. readTimeout = "150ms"
  138. readsTimeout = "600ms"
  139. writeTimeout = "200ms"
  140. writesTimeout = "600ms"
  141. [hbaseOld.zookeeper]
  142. root = ""
  143. addrs = ["10.23.58.154:2181","10.23.58.141:2181","10.23.58.20:2181"]
  144. timeout = "30s"
  145. [arcSub]
  146. key = "4c76cbb7a985ac90"
  147. secret = "f36fbb15a85c6e21b0ee22a560ef3a67"
  148. group = "Archive-MainArchive-S"
  149. topic = "Archive-T"
  150. action = "sub"
  151. offset = "old"
  152. buffer = 128
  153. name = "creative-job/sub"
  154. proto = "tcp"
  155. addr = "172.16.33.158:6205"
  156. idle = 100
  157. active = 100
  158. dialTimeout = "1s"
  159. readTimeout = "60s"
  160. writeTimeout = "1s"
  161. idleTimeout = "10s"
  162. [arcNotifySub]
  163. key = "4c76cbb7a985ac90"
  164. secret = "f36fbb15a85c6e21b0ee22a560ef3a67"
  165. group = "ArchiveNotify-MainArchive-S"
  166. topic = "ArchiveNotify-T"
  167. action = "sub"
  168. offset = "old"
  169. buffer = 128
  170. name = "creative-job/sub/arcNotify"
  171. proto = "tcp"
  172. addr = "172.16.33.158:6205"
  173. idle = 100
  174. active = 100
  175. dialTimeout = "1s"
  176. readTimeout = "60s"
  177. writeTimeout = "1s"
  178. idleTimeout = "10s"
  179. [upPub]
  180. key = "4c76cbb7a985ac90"
  181. secret = "f36fbb15a85c6e21b0ee22a560ef3a67"
  182. group = "Creative-MainArchive-P"
  183. topic = "Creative-T"
  184. action = "pub"
  185. offset = "old"
  186. buffer = 128
  187. name = "creative-job/pub"
  188. proto = "tcp"
  189. addr = "172.16.33.158:6205"
  190. active = 10
  191. idle = 5
  192. dialTimeout = "1s"
  193. readTimeout = "1s"
  194. writeTimeout = "1s"
  195. idleTimeout = "10s"
  196. [monitor]
  197. moni="http://moni.bilibili.co/dashboard/db/databus?orgId=1"
  198. host = "http://bap.bilibili.co"
  199. username="fengpengfei"
  200. appToken = "jLgSvndTeranxGMN"
  201. appSecret = "CcCdlEBYqxqrgAieJuFVZUsgPmweLRms"
  202. [taskSub]
  203. key = "4c76cbb7a985ac90"
  204. secret = "43bb22ce34a6b13e7814f09cb8116522"
  205. group = "CreativeTask-MainArchive-S"
  206. topic = "CreativeTask-T"
  207. action = "sub"
  208. offset = "old"
  209. buffer = 128
  210. name = "creative-job/sub/task"
  211. proto = "tcp"
  212. addr = "172.18.33.50:6205"
  213. idle = 100
  214. active = 100
  215. dialTimeout = "1s"
  216. readTimeout = "60s"
  217. writeTimeout = "1s"
  218. idleTimeout = "10s"
  219. [shareSub]
  220. key = "4c76cbb7a985ac90"
  221. secret = "43bb22ce34a6b13e7814f09cb8116522"
  222. group = "ShareMid-MainArchive-S"
  223. topic = "ShareMid-T"
  224. action = "sub"
  225. offset = "old"
  226. buffer = 128
  227. name = "creative-job/sub/share"
  228. proto = "tcp"
  229. addr = "172.18.33.50:6205"
  230. idle = 100
  231. active = 100
  232. dialTimeout = "1s"
  233. readTimeout = "60s"
  234. writeTimeout = "1s"
  235. idleTimeout = "10s"
  236. [relationSub]
  237. key = "4c76cbb7a985ac90"
  238. secret = "43bb22ce34a6b13e7814f09cb8116522"
  239. group = "Relation-MainArchive-CreativeNewcomer-S"
  240. topic = "Relation-T"
  241. action = "sub"
  242. offset = "old"
  243. buffer = 128
  244. name = "creative-job/sub/relation"
  245. proto = "tcp"
  246. addr = "172.18.33.50:6205"
  247. idle = 100
  248. active = 100
  249. dialTimeout = "1s"
  250. readTimeout = "60s"
  251. writeTimeout = "1s"
  252. idleTimeout = "10s"
  253. [statLikeSub]
  254. key = "4c76cbb7a985ac90"
  255. secret = "43bb22ce34a6b13e7814f09cb8116522"
  256. group = "StatLike-MainArchive-CreativeNewcomer-S"
  257. topic = "StatLike-T"
  258. action = "sub"
  259. offset = "old"
  260. buffer = 128
  261. name = "creative-job/sub/statLike"
  262. proto = "tcp"
  263. addr = "172.18.33.50:6205"
  264. idle = 100
  265. active = 100
  266. dialTimeout = "1s"
  267. readTimeout = "60s"
  268. writeTimeout = "1s"
  269. idleTimeout = "10s"
  270. [statShareSub]
  271. key = "4c76cbb7a985ac90"
  272. secret = "43bb22ce34a6b13e7814f09cb8116522"
  273. group = "StatShare-MainArchive-CreativeNewcomer-S"
  274. topic = "StatShare-T"
  275. action = "sub"
  276. offset = "old"
  277. buffer = 128
  278. name = "creative-job/sub/statShare"
  279. proto = "tcp"
  280. addr = "172.18.33.50:6205"
  281. idle = 100
  282. active = 100
  283. dialTimeout = "1s"
  284. readTimeout = "60s"
  285. writeTimeout = "1s"
  286. idleTimeout = "10s"
  287. [statCoinSub]
  288. key = "4c76cbb7a985ac90"
  289. secret = "43bb22ce34a6b13e7814f09cb8116522"
  290. group = "StatCoin-MainArchive-CreativeNewcomer-S"
  291. topic = "StatCoin-T"
  292. action = "sub"
  293. offset = "old"
  294. buffer = 128
  295. name = "creative-job/sub/statCoin"
  296. proto = "tcp"
  297. addr = "172.18.33.50:6205"
  298. idle = 100
  299. active = 100
  300. dialTimeout = "1s"
  301. readTimeout = "60s"
  302. writeTimeout = "1s"
  303. idleTimeout = "10s"
  304. [statFavSub]
  305. key = "4c76cbb7a985ac90"
  306. secret = "43bb22ce34a6b13e7814f09cb8116522"
  307. group = "StatFav-MainArchive-CreativeNewcomer-S"
  308. topic = "StatFav-T"
  309. action = "sub"
  310. offset = "old"
  311. buffer = 128
  312. name = "creative-job/sub/statFav"
  313. proto = "tcp"
  314. addr = "172.18.33.50:6205"
  315. idle = 100
  316. active = 100
  317. dialTimeout = "1s"
  318. readTimeout = "60s"
  319. writeTimeout = "1s"
  320. idleTimeout = "10s"
  321. [statReplySub]
  322. key = "4c76cbb7a985ac90"
  323. secret = "43bb22ce34a6b13e7814f09cb8116522"
  324. group = "StatReply-MainArchive-CreativeNewcomer-S"
  325. topic = "StatReply-T"
  326. action = "sub"
  327. offset = "old"
  328. buffer = 128
  329. name = "creative-job/sub/statReply"
  330. proto = "tcp"
  331. addr = "172.18.33.50:6205"
  332. idle = 100
  333. active = 100
  334. dialTimeout = "1s"
  335. readTimeout = "60s"
  336. writeTimeout = "1s"
  337. idleTimeout = "10s"
  338. [statDMSub]
  339. key = "4c76cbb7a985ac90"
  340. secret = "43bb22ce34a6b13e7814f09cb8116522"
  341. group = "StatDM-MainArchive-CreativeNewcomer-S"
  342. topic = "StatDM-T"
  343. action = "sub"
  344. offset = "old"
  345. buffer = 128
  346. name = "creative-job/sub/statDM"
  347. proto = "tcp"
  348. addr = "172.18.33.50:6205"
  349. idle = 100
  350. active = 100
  351. dialTimeout = "1s"
  352. readTimeout = "60s"
  353. writeTimeout = "1s"
  354. idleTimeout = "10s"
  355. [statViewSub]
  356. key = "4c76cbb7a985ac90"
  357. secret = "43bb22ce34a6b13e7814f09cb8116522"
  358. group = "StatView-MainArchive-CreativeNewcomer-S"
  359. topic = "StatView-T"
  360. action = "sub"
  361. offset = "old"
  362. buffer = 128
  363. name = "creative-job/sub/statView"
  364. proto = "tcp"
  365. addr = "172.18.33.50:6205"
  366. idle = 100
  367. active = 100
  368. dialTimeout = "1s"
  369. readTimeout = "60s"
  370. writeTimeout = "1s"
  371. idleTimeout = "10s"
  372. [newUpSub]
  373. key = "4c76cbb7a985ac90"
  374. secret = "f36fbb15a85c6e21b0ee22a560ef3a67"
  375. group = "ArchiveNotify-MainArchive-CreativeNewcomer-S"
  376. topic = "ArchiveNotify-T"
  377. action = "sub"
  378. offset = "old"
  379. buffer = 128
  380. name = "creative-job/sub/newup"
  381. proto = "tcp"
  382. addr = "172.18.33.50:6205"
  383. idle = 100
  384. active = 100
  385. dialTimeout = "1s"
  386. readTimeout = "60s"
  387. writeTimeout = "1s"
  388. idleTimeout = "10s"
  389. [mobileUpSub]
  390. key = "4c76cbb7a985ac90"
  391. secret = "f36fbb15a85c6e21b0ee22a560ef3a67"
  392. group = "Videoup2Bvc-MainArchive-CreativeNewcomer-S"
  393. topic = "Videoup2Bvc"
  394. action = "sub"
  395. offset = "old"
  396. buffer = 128
  397. name = "creative-job/sub/mobileup"
  398. proto = "tcp"
  399. addr = "172.18.33.50:6205"
  400. idle = 100
  401. active = 100
  402. dialTimeout = "1s"
  403. readTimeout = "60s"
  404. writeTimeout = "1s"
  405. idleTimeout = "10s"
  406. [weeklyHonorInfoc]
  407. taskID = "001810"
  408. proto = "tcp"
  409. addr = "172.18.33.125:15140"
  410. chanSize = 10240