member-job-dev.toml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. #This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/member-job.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6330"
  7. family = "member-job"
  8. address = "0.0.0.0"
  9. [log]
  10. dir = "/data/log/member-job"
  11. stdout=true
  12. [tracer]
  13. proto = "udp"
  14. addr = "172.16.33.46:5140"
  15. tag = "platform/member-job"
  16. [multiHTTP]
  17. [multiHTTP.inner]
  18. addrs = ["0.0.0.0:6688"]
  19. maxListen = 10
  20. [app]
  21. key = "4699a07e59d7149e"
  22. secret = "test"
  23. [path]
  24. accountInfo="http://uat-account.bilibili.co/api/internal/data/info"
  25. [httpClient]
  26. dial = "1s"
  27. timeout = "2s"
  28. keepAlive = "60s"
  29. timer = 128
  30. key = "4699a07e59d7149e"
  31. secret = "test"
  32. [httpClient.breaker]
  33. window = "3s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [memcache]
  39. name = "member"
  40. proto = "tcp"
  41. # addr = "172.16.33.54:11211"
  42. addr = "172.18.33.60:11233"
  43. idle = 5
  44. active = 10
  45. dialTimeout = "1s"
  46. readTimeout = "1s"
  47. writeTimeout = "1s"
  48. idleTimeout = "10s"
  49. expire = "24h"
  50. [mysql]
  51. addr = "172.16.33.205"
  52. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_member?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  53. active = 5
  54. idle = 2
  55. IdleTimeout ="4h"
  56. queryTimeout = "100ms"
  57. execTimeout = "100ms"
  58. tranTimeout = "200ms"
  59. [mysql.breaker]
  60. window = "3s"
  61. sleep = "100ms"
  62. bucket = 10
  63. ratio = 0.5
  64. request = 100
  65. [accCheckMysql]
  66. addr = "172.16.33.205:3306"
  67. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=50ms&readTimeout=300ms&writeTimeout=300ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  68. active = 50
  69. idle = 5
  70. idleTimeout = "4h"
  71. queryTimeout = "100ms"
  72. execTimeout = "100ms"
  73. tranTimeout = "200ms"
  74. [accCheckMysql.breaker]
  75. window = "3s"
  76. sleep = "100ms"
  77. bucket = 10
  78. ratio = 0.5
  79. request = 100
  80. [accMysql]
  81. addr = "172.16.33.205:3306"
  82. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=50ms&readTimeout=300ms&writeTimeout=300ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  83. active = 50
  84. idle = 5
  85. idleTimeout = "4h"
  86. queryTimeout = "100ms"
  87. execTimeout = "100ms"
  88. tranTimeout = "200ms"
  89. [accMysql.breaker]
  90. window = "3s"
  91. sleep = "100ms"
  92. bucket = 10
  93. ratio = 0.5
  94. request = 100
  95. [asoMysql]
  96. addr = "172.16.33.205:3306"
  97. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=50ms&readTimeout=300ms&writeTimeout=300ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  98. active = 50
  99. idle = 5
  100. idleTimeout = "4h"
  101. queryTimeout = "100ms"
  102. execTimeout = "100ms"
  103. tranTimeout = "200ms"
  104. [asoMysql.breaker]
  105. window = "3s"
  106. sleep = "100ms"
  107. bucket = 10
  108. ratio = 0.5
  109. request = 100
  110. [PasslogMysql]
  111. addr = "172.16.33.205"
  112. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  113. active = 20
  114. idle = 10
  115. idleTimeout ="4h"
  116. queryTimeout = "1000ms"
  117. execTimeout = "500ms"
  118. tranTimeout = "2000ms"
  119. [PasslogMysql.breaker]
  120. window = "3s"
  121. sleep = "100ms"
  122. bucket = 10
  123. ratio = 0.5
  124. request = 100
  125. [PLogDatabus]
  126. key = "4ba46ba31f9a44ef"
  127. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  128. group = "AccountLog-MainAccount-S"
  129. topic = "AccountLog-T"
  130. action = "sub"
  131. offset = "old"
  132. buffer = 2048
  133. name = "member-job/databus"
  134. proto = "tcp"
  135. # addr = "172.16.33.158:6205"
  136. addr = "172.18.33.50:6205"
  137. idle = 100
  138. active = 100
  139. dialTimeout = "1s"
  140. readTimeout = "60s"
  141. writeTimeout = "1s"
  142. idleTimeout = "10s"
  143. [logdatabus]
  144. key = "4ba46ba31f9a44ef"
  145. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  146. group = "AccountLog-MainAccount-S"
  147. topic = "AccountLog-T"
  148. action = "sub"
  149. offset = "old"
  150. buffer = 2048
  151. name = "member-job/databus"
  152. proto = "tcp"
  153. # addr = "172.16.33.158:6205"
  154. addr = "172.18.33.50:6205"
  155. idle = 100
  156. active = 100
  157. dialTimeout = "1s"
  158. readTimeout = "60s"
  159. writeTimeout = "1s"
  160. idleTimeout = "10s"
  161. [expdatabus]
  162. key = "4ba46ba31f9a44ef"
  163. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  164. group = "AccountExp-MainAccount-S"
  165. topic = "AccountExp-T"
  166. action = "sub"
  167. offset = "old"
  168. buffer = 2048
  169. name = "member-job/databus"
  170. proto = "tcp"
  171. # addr = "172.16.33.158:6205"
  172. addr = "172.18.33.50:6205"
  173. idle = 100
  174. active = 100
  175. dialTimeout = "1s"
  176. readTimeout = "60s"
  177. writeTimeout = "1s"
  178. idleTimeout = "10s"
  179. [logindatabus]
  180. key = "4ba46ba31f9a44ef"
  181. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  182. group = "PassportLog-MainAccount-S"
  183. topic = "PassportLog-T"
  184. action = "sub"
  185. offset = "old"
  186. buffer = 2048
  187. name = "member-job/databus"
  188. proto = "tcp"
  189. # addr = "172.16.33.158:6205"
  190. addr = "172.18.33.50:6205"
  191. idle = 100
  192. active = 100
  193. dialTimeout = "1s"
  194. readTimeout = "60s"
  195. writeTimeout = "1s"
  196. idleTimeout = "10s"
  197. [awarddatabus]
  198. key = "4ba46ba31f9a44ef"
  199. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  200. group = "AccountLoginAward-MainAccount-S"
  201. topic = "AccountLoginAward-T"
  202. action = "sub"
  203. offset = "new"
  204. buffer = 2048
  205. name = "coin-job/databus"
  206. proto = "tcp"
  207. # addr = "172.16.33.158:6205"
  208. addr = "172.18.33.50:6205"
  209. idle = 100
  210. active = 100
  211. dialTimeout = "1s"
  212. readTimeout = "60s"
  213. writeTimeout = "1s"
  214. idleTimeout = "10s"
  215. [accountnotify]
  216. key = "4ba46ba31f9a44ef"
  217. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  218. group = "AccountNotify-Notify-P"
  219. topic = "AccountNotify-T"
  220. action = "pub"
  221. buffer = 2048
  222. name = "account-notify-job/databus"
  223. proto = "tcp"
  224. # addr = "172.16.33.158:6205"
  225. addr = "172.18.33.50:6205"
  226. # addr = "172.18.33.61:6889"
  227. # addr = "172.16.33.56:6205"
  228. idle = 1
  229. active = 1
  230. dialTimeout = "1s"
  231. readTimeout = "60s"
  232. writeTimeout = "1s"
  233. idleTimeout = "10s"
  234. [sharemiddatabus]
  235. key = "4ba46ba31f9a44ef"
  236. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  237. group = "ShareMid-MainAccount-S"
  238. topic = "ShareMid-T"
  239. action = "sub"
  240. offset = "old"
  241. buffer = 2048
  242. name = "member-job/databus"
  243. proto = "tcp"
  244. # addr = "172.16.33.158:6205"
  245. addr = "172.18.33.50:6205"
  246. idle = 100
  247. active = 100
  248. dialTimeout = "1s"
  249. readTimeout = "60s"
  250. writeTimeout = "1s"
  251. idleTimeout = "10s"
  252. [databus]
  253. key = "4ba46ba31f9a44ef"
  254. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  255. group = "MemberBinlog-MainAccount-S"
  256. topic = "MemberBinlog-T"
  257. action = "sub"
  258. offset = "old"
  259. buffer = 2048
  260. name = "member-job/databus"
  261. proto = "tcp"
  262. # addr = "172.16.33.158:6205"
  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. [passortDataBus]
  271. key = "4ba46ba31f9a44ef"
  272. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  273. group = "PassportPurgeCache-MainAccount-S"
  274. topic = "PassportPurgeCache-T"
  275. action = "sub"
  276. offset = "old"
  277. buffer = 2048
  278. name = "member-job/databus"
  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. [accDataBus]
  288. key = "4ba46ba31f9a44ef"
  289. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  290. group = "UserActive-MainAccount-S"
  291. topic = "UserActive-T"
  292. action = "sub"
  293. offset = "old"
  294. buffer = 2048
  295. name = "member-job/databus"
  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. [databusutil]
  305. size = 100
  306. chan = 1024
  307. num = 4
  308. ticker="30s"
  309. [redis]
  310. name = "member-service"
  311. proto = "tcp"
  312. # addr = "172.16.33.54:6379"
  313. addr = "172.18.33.60:6893"
  314. idle = 100
  315. active = 100
  316. dialTimeout = "1s"
  317. readTimeout = "1s"
  318. writeTimeout = "1s"
  319. idleTimeout = "10s"
  320. expire = "720h"
  321. ansCountExpire = "12h"
  322. ansAddFlagCountExpire = "1m"
  323. [report]
  324. taskID = "000293"
  325. proto = "unixgram"
  326. addr = "/var/run/lancer/collector.sock"
  327. chan = 1024
  328. timeout = "200ms"
  329. [blockdb]
  330. # addr = "172.22.34.101:3306"
  331. # dsn = "block:fGCs8LbV6c0nSXoyA9kdKwOpIiHa5hBq@tcp(172.22.34.101:3306)/bilibili_block?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  332. addr = "127.0.0.1:3306"
  333. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  334. active = 20
  335. idle = 10
  336. idleTimeout ="4h"
  337. queryTimeout = "1s"
  338. execTimeout = "1s"
  339. tranTimeout = "2s"
  340. [db.breaker]
  341. window = "3s"
  342. sleep = "100ms"
  343. bucket = 10
  344. ratio = 0.5
  345. request = 100
  346. [blockMemcache]
  347. name = "block-service"
  348. proto = "unix"
  349. addr = "/tmp/uat-block-service-mc.sock"
  350. idle = 5
  351. active = 10
  352. dialTimeout = "1s"
  353. readTimeout = "1s"
  354. writeTimeout = "1s"
  355. idleTimeout = "10s"
  356. [blockCreditDatabus]
  357. key = "875d05ffa843e297"
  358. secret= "1b58f18382f0e3662f64f8457c05c049"
  359. group= "Credit-MainAccountLaw-S"
  360. topic= "Credit-T"
  361. action="sub"
  362. name = "block-job/databus"
  363. proto = "tcp"
  364. addr = "172.18.33.50:6205"
  365. idle = 2
  366. active = 10
  367. dialTimeout = "1s"
  368. readTimeout = "60s"
  369. writeTimeout = "1s"
  370. idleTimeout = "10s"
  371. expire = "1h"
  372. [blockProperty]
  373. limitExpireCheckLimit = 100
  374. limitExpireCheckTick = "5m"
  375. creditExpireCheckLimit = 100
  376. creditExpireCheckTick = "5m"
  377. msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  378. [property.flag]
  379. # 自动解禁检查
  380. expireCheck = true
  381. # 小黑屋答题状态订阅
  382. creditSub = true
  383. # 同步老库db
  384. [property.msg]
  385. [property.msg.blockRemove]
  386. code = "2_3_6"
  387. title = "账号封禁解除通知"
  388. content = "你的账号已经解除封禁,封禁期间禁止使用的各项社区功能已经恢复。请遵守社区规范,共同维护良好的社区氛围。"
  389. [biz]
  390. realnameAlipayCheckTick = "5m"
  391. realnameAlipayCheckLimit = 100
  392. realnameAlipayAppID = "https://openapi.alipay.com/gateway.do"
  393. realnameAlipayGateway = "2018062060353784"
  394. [ParsedRealnameAgent]
  395. TaskID="001826"
  396. Proto="tcp"
  397. Addr="dataflow.bilibili.co:5401"