favorite-service-test.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. [log]
  2. stdout = true
  3. [fav]
  4. maxFolders = 50
  5. maxPagesize = 30
  6. maxBatchSize = 1000
  7. maxDataSize = 2000
  8. MaxRecentSize= 10
  9. maxNameLen = 30
  10. maxOperationNum = 30
  11. defaultFolderLimit = 100000
  12. normalFolderLimit = 999
  13. apiHost = "http://api.bilibili.co"
  14. expire = "24h"
  15. cleanCDTime = "1m"
  16. [platform]
  17. maxFolders = 100
  18. maxNameLen = 60
  19. maxDescLen = 250
  20. [bm]
  21. network = "tcp"
  22. addr = "0.0.0.0:7671"
  23. timeout = "1s"
  24. readTimeout = "1s"
  25. writeTimeout = "1s"
  26. [httpClient]
  27. key = "0dc647722719f2ea"
  28. secret = "a3769b553680da10b40994265fb48d20"
  29. dial = "30ms"
  30. timeout = "900ms"
  31. keepAlive = "60s"
  32. timer = 128
  33. [httpClient.breaker]
  34. window ="3s"
  35. sleep ="100ms"
  36. bucket = 10
  37. ratio = 0.1
  38. request = 100
  39. [topic]
  40. topicURL = "http://matsuri.bilibili.co/activity/pages"
  41. [topic.httpClient]
  42. key = "0dc647722719f2ea"
  43. secret = "a3769b553680da10b40994265fb48d20"
  44. dial = "30ms"
  45. timeout = "800ms"
  46. keepAlive = "60s"
  47. timer = 128
  48. [topic.httpClient.breaker]
  49. window ="3s"
  50. sleep ="100ms"
  51. bucket = 10
  52. ratio = 0.1
  53. request = 100
  54. [mysql]
  55. [mysql.fav]
  56. addr = "172.22.34.101:3306"
  57. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_fav?timeout=2s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  58. active = 20
  59. idle = 10
  60. idleTimeout ="4h"
  61. queryTimeout = "1s"
  62. execTimeout = "1s"
  63. tranTimeout = "1s"
  64. [mysql.fav.breaker]
  65. window = "3s"
  66. sleep = "100ms"
  67. bucket = 10
  68. ratio = 0.5
  69. request = 100
  70. [mysql.read]
  71. addr = "172.22.34.101:3306"
  72. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_fav?timeout=2s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  73. active = 20
  74. idle = 10
  75. idleTimeout ="4h"
  76. queryTimeout = "1s"
  77. execTimeout = "1s"
  78. tranTimeout = "1s"
  79. [mysql.read.breaker]
  80. window = "3s"
  81. sleep = "100ms"
  82. bucket = 10
  83. ratio = 0.5
  84. request = 100
  85. [mysql.push]
  86. addr = "172.22.34.101:3306"
  87. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_fav?timeout=2s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  88. active = 20
  89. idle = 10
  90. idleTimeout ="4h"
  91. queryTimeout = "1s"
  92. execTimeout = "1s"
  93. tranTimeout = "1s"
  94. [mysql.push.breaker]
  95. window = "3s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [supervisor]
  101. on = true
  102. begin = "2017-10-01T15:04:05+08:00"
  103. end = "2017-10-22T11:10:05+08:00"
  104. [antispam]
  105. on=true
  106. second=5
  107. n=10
  108. hour=1
  109. m=5
  110. [antispam.redis]
  111. name = "favorite/favorite"
  112. proto = "tcp"
  113. addr = "172.16.33.54:6379"
  114. idle = 100
  115. active = 100
  116. dialTimeout = "500ms"
  117. readTimeout = "1s"
  118. writeTimeout = "1s"
  119. idleTimeout = "80s"
  120. expire = "10m"
  121. [memcache]
  122. proto = "tcp"
  123. addr = "172.18.33.61:11231"
  124. active = 10
  125. idle = 2
  126. dialTimeout = "30ms"
  127. readTimeout = "150ms"
  128. writeTimeout = "150ms"
  129. idleTimeout = "80s"
  130. expire = "24h"
  131. [redis]
  132. name = "favorite/favorite"
  133. proto = "tcp"
  134. addr = "172.18.33.61:6808"
  135. active = 60000
  136. idle = 128
  137. dialTimeout = "30ms"
  138. readTimeout = "50ms"
  139. writeTimeout = "50ms"
  140. idleTimeout = "80s"
  141. expire = "32h"
  142. coverExpire = "30m"
  143. [jobDatabus]
  144. key = "170e302355453683"
  145. secret= "3d0e8db7bed0503949e545a469789279"
  146. group= "FavoriteJob-MainCommunity-P"
  147. topic= "FavoriteJob-T"
  148. action="pub"
  149. name = "favorite/job"
  150. proto = "tcp"
  151. addr = "172.18.33.50:6205"
  152. idle = 1
  153. active = 10
  154. dialTimeout = "1s"
  155. readTimeout = "1s"
  156. writeTimeout = "1s"
  157. idleTimeout = "10s"
  158. expire = "1h"
  159. [rpcServer]
  160. proto = "tcp"
  161. addr = "0.0.0.0:7679"
  162. weight = 10
  163. [rpcClient]
  164. [rpcClient.account]
  165. timeout = "150ms"
  166. [rpcClient.archive]
  167. timeout = "150ms"
  168. [rpcClient.filter]
  169. timeout = "1s"
  170. [rpcClient.rank]
  171. timeout = "1s"