growup-job.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/growup-job.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:7413"
  6. family = "growup"
  7. address = ""
  8. trace = false
  9. debug = false
  10. spy = 500
  11. [ratio]
  12. hour = 3
  13. sleep = 500
  14. num = 1000
  15. limit = 5000
  16. [income]
  17. hour = 0
  18. sleep = 500
  19. num = 1000
  20. [log]
  21. dir = "/data/log/growup-job/"
  22. [mysql]
  23. [mysql.growup]
  24. addr = "172.16.33.205:3307"
  25. dsn = "growup:test@tcp(172.16.33.205:3307)/bilibili_business_up?timeout=10s&readTimeout=50s&writeTimeout=50s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  26. active = 30
  27. idle = 2
  28. idleTimeout = "4h"
  29. queryTimeout = "10s"
  30. execTimeout = "100s"
  31. tranTimeout = "100s"
  32. [mysql.growup.breaker]
  33. window = "3s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [mysql.allowance]
  39. addr = "172.16.0.148:3306"
  40. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_business_up_cooperate?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  41. active = 5
  42. idle = 2
  43. idleTimeout = "4h"
  44. queryTimeout = "200ms"
  45. execTimeout = "200ms"
  46. tranTimeout = "200ms"
  47. [mysql.allowance.breaker]
  48. window = "3s"
  49. sleep = "100ms"
  50. bucket = 10
  51. ratio = 0.5
  52. request = 100
  53. [keySecret]
  54. key = "a4bb50e6f2bc2e0f"
  55. secret = "3507b8667a3d0b6c952013db2b635f3a"
  56. [mail]
  57. host = "smtp.exmail.qq.com"
  58. port = 465
  59. username = "2233@bilibili.com"
  60. password = "2233"
  61. # upincome and tag income mail
  62. [[mail.send]]
  63. type = 1
  64. addr = ["2233@bilibili.com"]
  65. # combine mail
  66. [[mail.send]]
  67. type = 2
  68. addr = ["2233@bilibili.com"]
  69. [[mail.send]]
  70. type = 3
  71. addr = ["2233@bilibili.com"]
  72. [[mail.send]]
  73. type = 4
  74. addr = ["2233@bilibili.com"]
  75. [host]
  76. archive = "http://bili-search.bilibili.co"
  77. videoType = "http://172.16.33.123:6328"
  78. columnType = "https://api.bilibili.com/x/article/categories"
  79. dataplatform = "http://berserker.bilibili.co"
  80. columnAct = "https://www.bilibili.com/activity/likes/list/"
  81. profit = "http://127.0.0.1:7410"
  82. vc = "https://api.vc.bilibili.co"
  83. porder = "http://archive.api.bilibili.co/videoup/porder/arc/list"
  84. archives = "http://api.bilibili.co/x/internal/v2/archive/archives"
  85. api = "http://api.bilibili.com"
  86. [bm]
  87. addr = "0.0.0.0:7414"
  88. maxListen = 1000
  89. timeout = "3600s"
  90. [httpClient]
  91. key = "c1a1cb2d89c33794"
  92. secret = "dda47eeca111e03e6845017505baea13"
  93. dial = "2s"
  94. timeout = "3s"
  95. keepAlive = "60s"
  96. timer = 10
  97. [httpClient.breaker]
  98. window = "10s"
  99. sleep = "100ms"
  100. bucket = 10
  101. ratio = 0.5
  102. request = 100
  103. [dpClient]
  104. #key = "cadb2a78fef220e346ceb37a203b8bf3"
  105. #secret = "91d6a8610b6d139f8901d8605c0f43d3"
  106. key = "5dd53c7f7dd88b26c1de9273d9aff420"
  107. secret = "3f0990c3c97fc096c80b5523266f44cf"
  108. dial = "2s"
  109. timeout = "3s"
  110. keepAlive = "60s"
  111. timer = 1000
  112. [dpClient.breaker]
  113. window = "10s"
  114. sleep = "100ms"
  115. bucket = 10
  116. ratio = 0.5
  117. request = 100
  118. [hbase]
  119. master = ""
  120. meta = ""
  121. dialTimeout = "1s"
  122. readTimeout = "150ms"
  123. readsTimeout = "600ms"
  124. writeTimeout = "200ms"
  125. writesTimeout = "600ms"
  126. [hbase.zookeeper]
  127. root = ""
  128. addrs = ["10.23.58.154:2181","10.23.58.141:2181","10.23.58.20:2181"]
  129. timeout = "30s"
  130. [archiveSub]
  131. key = "6f3331a8932e24a2"
  132. secret = "4bfa38d3d836b677990ea2bc0a6892e4"
  133. group = "Archive-MobileStudio-S"
  134. topic = "Archive-T"
  135. action = "sub"
  136. offset = "old"
  137. buffer = 128
  138. name = "growup-job/sub"
  139. proto = "tcp"
  140. addr = "172.18.33.50:6205"
  141. idle = 100
  142. active = 100
  143. dialTimeout = "1s"
  144. readTimeout = "60s"
  145. writeTimeout = "1s"
  146. idleTimeout = "10s"
  147. [bubble]
  148. [[bubble.bRatio]]
  149. bType = 1
  150. ratio = 0.8
  151. [[bubble.bRatio]]
  152. bType = 2
  153. ratio = 0.8