feed-service-test.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # This is a TOML document. Boom.
  2. [bm]
  3. addr = "0.0.0.0:6362"
  4. timeout = "1s"
  5. [rpcServer]
  6. proto = "tcp"
  7. addr = "0.0.0.0:6361"
  8. [accountRPC]
  9. [archiveRPC]
  10. [articleRPC]
  11. [multiRedis]
  12. maxArcsNum = 50 # 对每个up主回源时候 一次最多拿多少个稿件 也是每个up主稿件缓存的限制量
  13. TTLUpper = "480h"
  14. expireUpper = "480h"
  15. expireFeed = "16h"
  16. [multiRedis.Cache]
  17. name = "feed-service"
  18. proto = "tcp"
  19. addr = "172.18.33.60:6891"
  20. idle = 10
  21. active = 10
  22. dialTimeout = "1s"
  23. readTimeout = "1s"
  24. writeTimeout = "1s"
  25. idleTimeout = "10s"
  26. [memcache]
  27. name = "feed-service"
  28. proto = "tcp"
  29. addr = "172.18.33.61:11230"
  30. idle = 10
  31. active = 10
  32. dialTimeout = "2s"
  33. readTimeout = "2s"
  34. writeTimeout = "2s"
  35. idleTimeout = "7h"
  36. expire = "15m"
  37. bangumiExpire = "15m"
  38. [httpClient]
  39. key = "e7482d29be4a95b8"
  40. secret = "9e803791cdef756e75faee68e12b7442"
  41. dial = "500ms"
  42. timeout = "2s"
  43. keepAlive = "60s"
  44. timer = 10
  45. [httpClient.breaker]
  46. window ="10s"
  47. sleep ="10ms"
  48. bucket = 10
  49. ratio = 0.5
  50. request = 100
  51. [feed]
  52. appLength = 200
  53. webLength = 400
  54. archiveFeedLength = 200
  55. archiveFeedExpire = "5m"
  56. bangumiFeedExpire = "5m"
  57. appPullInterval = "5m"
  58. webPullInterval = "15s"
  59. bulkSize = 500
  60. minUpCnt = 10
  61. maxTotalCnt = 100