favorite-job-test.toml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # This is a TOML document. Boom.
  2. [bm]
  3. addr = "0.0.0.0:6016"
  4. timeout = "1s"
  5. readTimeout = "1s"
  6. writeTimeout = "1s"
  7. [fav]
  8. maxPageSize = 50
  9. cleanCDTime = "10s"
  10. sleepTime = "200ms"
  11. greyMod = 2126
  12. whiteMids = [48222126,88888894]
  13. [statMerge]
  14. business = 2
  15. target = 1
  16. sources = [22,33]
  17. [db]
  18. [db.fav]
  19. addr = "[favorite]tcp@172.16.33.205:3308"
  20. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_fav?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  21. active = 20
  22. idle = 10
  23. idleTimeout ="4h"
  24. queryTimeout = "2s"
  25. execTimeout = "2s"
  26. tranTimeout = "2s"
  27. [db.fav.breaker]
  28. window = "3s"
  29. sleep = "100ms"
  30. bucket = 10
  31. ratio = 0.5
  32. request = 100
  33. [db.read]
  34. addr = "[favorite]tcp@172.16.33.205:3308"
  35. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_fav?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  36. active = 20
  37. idle = 10
  38. idleTimeout ="4h"
  39. queryTimeout = "2s"
  40. execTimeout = "2s"
  41. tranTimeout = "2s"
  42. [db.read.breaker]
  43. window = "3s"
  44. sleep = "100ms"
  45. bucket = 10
  46. ratio = 0.5
  47. request = 100
  48. [redis]
  49. name = "favorite-job/favorite"
  50. proto = "tcp"
  51. addr = "172.18.33.61:6808"
  52. idle = 100
  53. active = 100
  54. dialTimeout = "500ms"
  55. readTimeout = "1s"
  56. writeTimeout = "1s"
  57. idleTimeout = "80s"
  58. expire = "10m"
  59. ipExpire = "60s"
  60. buvidExpire = "5m"
  61. [memcache]
  62. name = "favorite"
  63. proto = "tcp"
  64. addr = "172.18.33.61:11231"
  65. idle = 10
  66. active = 10
  67. dialTimeout = "2s"
  68. readTimeout = "2s"
  69. writeTimeout = "2s"
  70. idleTimeout = "7h"
  71. expire = "15m"
  72. [binlogDatabus]
  73. key = "170e302355453683"
  74. secret = "3d0e8db7bed0503949e545a469789279"
  75. group = "Favorite-MainCommunity-S"
  76. topic = "Favorite-T"
  77. action = "sub"
  78. name = "favorite-job/binlog"
  79. proto = "tcp"
  80. addr = "172.18.33.50:6205"
  81. idle = 1
  82. active = 1
  83. dialTimeout = "1s"
  84. readTimeout = "60s"
  85. writeTimeout = "1s"
  86. idleTimeout = "10s"
  87. [statFavDatabus]
  88. key = "170e302355453683"
  89. secret= "51b66df3ebeca2b08f0017f350b6f0ce"
  90. group= "StatFav-MainCommunity-P"
  91. topic= "StatFav-T"
  92. action="pub"
  93. name = "favorite-service/stat"
  94. proto = "tcp"
  95. addr = "172.16.33.158:6205"
  96. idle = 100
  97. active = 100
  98. dialTimeout = "1s"
  99. readTimeout = "1s"
  100. writeTimeout = "1s"
  101. idleTimeout = "10s"
  102. expire = "1h"
  103. [statFavDatabus.consumers]
  104. "article"=1
  105. "archive"=2
  106. "playlist"=6
  107. [jobDatabus]
  108. key = "0QEO9F8JuuIxZzNDvklH"
  109. secret= "0QEO9F8JuuIxZzNDvklI"
  110. group= "FavoriteJob-UGC-S"
  111. topic= "FavoriteJob-T"
  112. action="sub"
  113. name = "favorite/job"
  114. proto = "tcp"
  115. addr = "172.16.33.158:6205"
  116. idle = 100
  117. active = 100
  118. dialTimeout = "1s"
  119. readTimeout = "60s"
  120. writeTimeout = "1s"
  121. idleTimeout = "10s"
  122. expire = "1h"
  123. [favStatDatabus]
  124. key = "170e302355453683"
  125. secret = "51b66df3ebeca2b08f0017f350b6f0ce"
  126. group = "StatFav-MainCommunity-S"
  127. topic = "StatFav-T"
  128. action = "sub"
  129. name = "favorite-job/favStat"
  130. proto = "tcp"
  131. addr = "172.16.33.158:6205"
  132. idle = 1
  133. active = 1
  134. dialTimeout = "1s"
  135. readTimeout = "60s"
  136. writeTimeout = "1s"
  137. idleTimeout = "10s"
  138. [shareStatDatabus]
  139. key = "170e302355453683"
  140. secret = "51b66df3ebeca2b08f0017f350b6f0ce"
  141. group = "StatShare-MainCommunity-S"
  142. topic = "StatShare-T"
  143. action = "sub"
  144. name = "favorite-job/shareStat"
  145. proto = "tcp"
  146. addr = "172.16.33.158:6205"
  147. idle = 1
  148. active = 1
  149. dialTimeout = "1s"
  150. readTimeout = "60s"
  151. writeTimeout = "1s"
  152. idleTimeout = "10s"
  153. [mediaListCntDatabus]
  154. key = "170e302355453683"
  155. secret = "51b66df3ebeca2b08f0017f350b6f0ce"
  156. group = "MediaListCnt-MainCommunity-S"
  157. topic = "MediaListCnt-T"
  158. action = "sub"
  159. name = "favorite-job/playStat"
  160. proto = "tcp"
  161. addr = "172.16.33.158:6205"
  162. idle = 1
  163. active = 1
  164. dialTimeout = "1s"
  165. readTimeout = "60s"
  166. writeTimeout = "1s"
  167. idleTimeout = "10s"
  168. [rpcClient2]
  169. [rpcClient2.coin]
  170. timeout = "1s"
  171. [rpcClient2.archive]
  172. timeout = "1s"
  173. [rpcClient2.article]
  174. timeout = "1s"