activity-job-test.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/activity-job.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:7750"
  6. trace = false
  7. debug = false
  8. env = "test"
  9. [interval]
  10. coinInterval = "30ms"
  11. queryInterval = "100ms"
  12. objStatInterval = "5m"
  13. viewRankInterval = "5m"
  14. kingStoryInterval = "5m"
  15. [log]
  16. dir = "/data/log/activity-job/"
  17. [app]
  18. key = "BjeiOXmiL363sAt8"
  19. secret = "0J18o2qCeuWzo6ScBpm4QZJO8Ij5kcvz"
  20. [HTTPServer]
  21. addrs = ["0.0.0.0:7751"]
  22. readTimeout = "1s"
  23. writeTimeout = "1s"
  24. maxListen = 10
  25. [HttpClient]
  26. key = "7c7ac0db1aa05587"
  27. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  28. dial = "500ms"
  29. timeout = "2s"
  30. keepAlive = "60s"
  31. timer = 1000
  32. [httpClient.breaker]
  33. window ="10s"
  34. sleep ="10ms"
  35. bucket = 10
  36. ratio = 0.1
  37. request = 10
  38. [mysql]
  39. [mysql.like]
  40. addr = "172.16.33.205:3308"
  41. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_lottery?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  42. active = 5
  43. idle = 2
  44. idleTimeout ="4h"
  45. queryTimeout = "100ms"
  46. execTimeout = "100ms"
  47. tranTimeout = "200ms"
  48. [mysql.like.breaker]
  49. window ="3s"
  50. sleep ="100ms"
  51. bucket = 10
  52. ratio = 0.5
  53. request = 100
  54. [memcache]
  55. accessExpire = "10s"
  56. likeExpire = "3s"
  57. [memcache.like]
  58. name = "activity/test"
  59. proto = "tcp"
  60. addr = "172.18.33.61:11220"
  61. idle = 5
  62. active = 10
  63. dialTimeout = "1s"
  64. readTimeout = "1s"
  65. writeTimeout = "1s"
  66. idleTimeout = "80s"
  67. [redis]
  68. name = "activity-job"
  69. proto = "tcp"
  70. addr = "172.16.33.104:6379"
  71. idle = 100
  72. active = 100
  73. dialTimeout = "1s"
  74. readTimeout = "1s"
  75. writeTimeout = "1s"
  76. idleTimeout = "10s"
  77. expire = "10s"
  78. [host]
  79. apiCo = "http://api.bilibili.co"
  80. activity = "http://uat-www.bilibili.com"
  81. [rule]
  82. broadcastSid = 0
  83. [actSub]
  84. key = "9765cdac5894f2ba"
  85. secret = "f4237d712c3ed1e7fab0137b81418b14"
  86. group = "Lottery-MainWebSvr-S"
  87. topic = "Lottery-T"
  88. action = "sub"
  89. [bnjSub]
  90. key = "9765cdac5894f2ba"
  91. secret = "f4237d712c3ed1e7fab0137b81418b14"
  92. group = "ActBnjPreview-MainWebSvr-S"
  93. topic = "ActBnjPreview-T"
  94. action = "sub"
  95. [bnj2019]
  96. lid = 1
  97. startTime = "2018-12-11T15:04:05+08:00"
  98. timelinePic = ""
  99. msgSpec = "1 42,43 15 * * *"
  100. midLimit = 1000
  101. wxTitle = "【拜年祭必看!】拜年祭预约人数到达预警"
  102. wxUser = "zhangshuyi,huangyukun,xuwenqi01,wuhao02,liweijia"
  103. [[bnj2019.time]]
  104. second = 60
  105. score = 95
  106. step = 4
  107. wxMsg = ""
  108. msg = "拜年祭预约人数即将到达200w,请及时准备拜年祭抽奖事项。"
  109. [[bnj2019.time]]
  110. second = 120
  111. score = 90
  112. step = 3
  113. wxMsg = ""
  114. msg = "拜年祭预约人数即将到达150w,请及时准备拜年祭抽奖事项。"
  115. [[bnj2019.message]]
  116. start = "2018-12-24T15:40:00+08:00"
  117. title = "【bilibili2019拜年祭档案揭秘】001"
  118. content = "飞雪连天射白鹿,笑书神侠倚碧鸳。当V家碰到金庸,会碰撞出怎样的火花?来拜年祭后台看看吧~"
  119. mc = "1_21_1"
  120. [[bnj2019.message]]
  121. start = "2018-12-24T15:43:00+08:00"
  122. title = "【bilibili2019拜年祭档案揭秘】002"
  123. content = "前有某任乱斗,今有b站混战。小电视:妈妈,快看神仙打架!链接"
  124. mc = "1_21_2"
  125. [[bnj2019.message]]
  126. start = "2019-01-31T00:00:00+08:00"
  127. title = "【bilibili2019拜年祭档案揭秘】003"
  128. content = "站内最强甜美系女歌手,真情翻唱哥哥凄美情歌。请跟随小电视到她的休息室看看吧~链接"
  129. mc = "1_21_3"
  130. [[bnj2019.message]]
  131. start = "2019-02-01T00:00:00+08:00"
  132. title = "【bilibili2019拜年祭档案揭秘】004"
  133. content = "什么?我喜欢的动画小哥哥和小姐姐们要来上海一日游?!快来和小电视一起研究哪些地方偶遇他们吧!链接"
  134. mc = "1_21_4"
  135. [[bnj2019.message]]
  136. start = "2019-02-02T00:00:00+08:00"
  137. title = "【bilibili2019拜年祭档案揭秘】005"
  138. content = "妹子眼里的钢铁直男?不,是冷冷的狗粮在脸上胡乱地拍。来,今日份的狗粮。链接"
  139. mc = "1_21_5"
  140. [[bnj2019.message]]
  141. start = "2019-02-03T00:00:00+08:00"
  142. title = "【bilibili2019拜年祭档案揭秘】006"
  143. content = "真相只有一个喵!点击开始解谜。链接"
  144. mc = "1_21_6"
  145. [vipSub]
  146. key = "9765cdac5894f2ba"
  147. secret = "f4237d712c3ed1e7fab0137b81418b14"
  148. group = "VipBinlog-MainWebSvr-S"
  149. topic = "VipBinlog-T"
  150. action = "sub"
  151. [kfcSub]
  152. key = "9765cdac5894f2ba"
  153. secret = "f4237d712c3ed1e7fab0137b81418b14"
  154. group = "KfcCouponAward-MainWebSvr-S"
  155. topic = "KfcCouponAward-T"
  156. action = "sub"