favorite-test.toml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. # This is a TOML document. Boom.
  2. [log]
  3. dir = "/data/log/favorite/"
  4. #[infoc2]
  5. #taskID = "000078"
  6. #proto = "tcp"
  7. #addr = "172.19.100.20:5401"
  8. #chanSize = 1024
  9. [supervisor]
  10. on = true
  11. begin = "2017-10-01T15:04:05+08:00"
  12. end = "2017-10-22T11:10:05+08:00"
  13. [antispam]
  14. on=true
  15. second=5
  16. n=10
  17. hour=1
  18. m=5
  19. [antispam.redis]
  20. name = "favorite/favorite"
  21. proto = "tcp"
  22. addr = "172.16.33.54:6379"
  23. idle = 100
  24. active = 100
  25. dialTimeout = "500ms"
  26. readTimeout = "1s"
  27. writeTimeout = "1s"
  28. idleTimeout = "80s"
  29. expire = "10m"
  30. [fav]
  31. maxFolders = 50
  32. maxPagesize = 30
  33. maxNameLen = 30
  34. maxDescLen = 100
  35. maxOperationNum = 30
  36. expire = "24h"
  37. [platform]
  38. maxFolders = 100
  39. maxNameLen = 60
  40. maxDescLen = 250
  41. [tracer]
  42. proto = "unixgram"
  43. addr = "/tmp/collect/dapper-collector.sock"
  44. family = "favorite"
  45. [httpClient]
  46. key = "0dc647722719f2ea"
  47. secret = "a3769b553680da10b40994265fb48d20"
  48. dial = "1s"
  49. timeout = "1s"
  50. keepAlive = "60s"
  51. timer = 1000
  52. [httpClient.breaker]
  53. window ="3s"
  54. sleep ="100ms"
  55. bucket = 10
  56. ratio = 0.1
  57. request = 100
  58. [ecode]
  59. domain = "172.16.33.248:6401"
  60. all = "1h"
  61. diff = "5m"
  62. [ecode.clientconfig]
  63. key = "test"
  64. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  65. dial = "2000ms"
  66. timeout = "2s"
  67. keepAlive = "10s"
  68. timer = 128
  69. [ecode.clientconfig.breaker]
  70. window ="3s"
  71. sleep ="100ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [ecode.app]
  76. key = "test"
  77. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  78. [bm]
  79. addr = "0.0.0.0:6010"
  80. maxListen = 1000
  81. timeout = "100ms"
  82. # readTimeout = "100ms"
  83. # writeTimeout = "100ms"
  84. [mysql]
  85. [mysql.fav]
  86. addr = "172.16.33.205:3308"
  87. dsn = "test:test@tcp(172.16.33.205:3308)/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 = "200ms"
  92. execTimeout = "200ms"
  93. tranTimeout = "200ms"
  94. [mysql.fav.breaker]
  95. window = "3s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [redis]
  101. name = "favorite/favorite"
  102. proto = "tcp"
  103. addr = "172.16.33.54:6379"
  104. idle = 100
  105. active = 100
  106. dialTimeout = "500ms"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "80s"
  110. expire = "10m"
  111. coverExpire = "30m"
  112. [memcache]
  113. name = "favorite"
  114. proto = "tcp"
  115. addr = "172.16.33.54:11211"
  116. idle = 10
  117. active = 10
  118. dialTimeout = "2s"
  119. readTimeout = "2s"
  120. writeTimeout = "2s"
  121. idleTimeout = "7h"
  122. expire = "15m"
  123. [jobDatabus]
  124. key = "0QEO9F8JuuIxZzNDvklH"
  125. secret= "0QEO9F8JuuIxZzNDvklI"
  126. group= "FavoriteJob-UGC-P"
  127. topic= "FavoriteJob-T"
  128. action="pub"
  129. name = "favorite/job"
  130. proto = "tcp"
  131. addr = "172.16.33.158:6205"
  132. idle = 100
  133. active = 100
  134. dialTimeout = "1s"
  135. readTimeout = "1s"
  136. writeTimeout = "1s"
  137. idleTimeout = "10s"
  138. expire = "1h"
  139. [rpcClient2]
  140. [rpcClient2.account]
  141. group = "groupapp"
  142. pullInterval = "10s"
  143. [rpcClient2.account.client]
  144. token = "123456"
  145. timeout = "1s"
  146. timer = 1000
  147. [rpcClient2.account.client.breaker]
  148. window ="3s"
  149. sleep ="100ms"
  150. bucket = 10
  151. ratio = 0.5
  152. request = 100
  153. [rpcClient2.account.zookeeper]
  154. root = "/microservice/account-service/"
  155. addrs = ["172.18.33.172:2181"]
  156. timeout = "30s"
  157. [rpcClient2.archive]
  158. pullInterval = "10s"
  159. group = "test"
  160. [rpcClient2.archive.client]
  161. token = "123456"
  162. timeout = "1s"
  163. timer = 1000
  164. [rpcClient2.archive.client.breaker]
  165. window ="3s"
  166. sleep ="100ms"
  167. bucket = 10
  168. ratio = 0.5
  169. request = 100
  170. [rpcClient2.archive.zookeeper]
  171. root = "/microservice/archive-service/"
  172. addrs = ["172.18.33.172:2181"]
  173. timeout = "30s"
  174. [rpcClient2.filter]
  175. pullInterval = "10s"
  176. [rpcClient2.filter.client]
  177. timeout = "1s"
  178. timer = 1000
  179. [rpcClient2.filter.client.breaker]
  180. window ="3s"
  181. sleep ="100ms"
  182. bucket = 10
  183. ratio = 0.5
  184. request = 100
  185. [rpcClient2.filter.zookeeper]
  186. root = "/microservice/filter-service/"
  187. addrs = ["172.18.33.172:2181"]
  188. timeout = "30s"
  189. [rpcClient2.favorite]
  190. pullInterval = "10s"
  191. [rpcClient2.favorite.client]
  192. timeout = "1s"
  193. timer = 1000
  194. [rpcClient2.favorite.client.breaker]
  195. window ="3s"
  196. sleep ="100ms"
  197. bucket = 10
  198. ratio = 0.5
  199. request = 100
  200. [rpcClient2.favorite.zookeeper]
  201. root = "/microservice/favorite/"
  202. addrs = ["172.18.33.172:2181"]
  203. timeout = "30s"