convey-test.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # convey 测试用 注意每次会重置redis/memcache里的数据
  2. [xlog]
  3. dir = "/data/log/feed-service/"
  4. [xlog.syslog]
  5. proto = "udp"
  6. addr = "172.18.19.22:9999"
  7. project = "web-interface"
  8. chanSize = 10240
  9. [bm]
  10. addr = "0.0.0.0:6362"
  11. timeout = "1s"
  12. [rpcServer]
  13. proto = "tcp"
  14. addr = "127.0.0.1:6361"
  15. [accountRPC]
  16. [archiveRPC]
  17. [articleRPC]
  18. [multiRedis]
  19. maxArcsNum = 50 # 对每个up主回源时候 一次最多拿多少个稿件 也是每个up主稿件缓存的限制量
  20. TTLUpper = "480h"
  21. expireUpper = "480h"
  22. expireFeed = "16h"
  23. [multiRedis.Cache]
  24. name = "feed-service"
  25. proto = "tcp"
  26. addr = "127.0.0.1:6379"
  27. idle = 10
  28. active = 10
  29. dialTimeout = "1s"
  30. readTimeout = "1s"
  31. writeTimeout = "1s"
  32. idleTimeout = "10s"
  33. [memcache]
  34. name = "feed-service"
  35. proto = "tcp"
  36. addr = "127.0.0.1:11211"
  37. idle = 10
  38. active = 10
  39. dialTimeout = "2s"
  40. readTimeout = "2s"
  41. writeTimeout = "2s"
  42. idleTimeout = "7h"
  43. expire = "15m"
  44. bangumiExpire = "15m"
  45. [httpClient]
  46. key = "e7482d29be4a95b8"
  47. secret = "9e803791cdef756e75faee68e12b7442"
  48. dial = "500ms"
  49. timeout = "2s"
  50. keepAlive = "60s"
  51. timer = 10
  52. [httpClient.breaker]
  53. window ="10s"
  54. sleep ="10ms"
  55. bucket = 10
  56. ratio = 0.5
  57. request = 100
  58. [app]
  59. key = "e7482d29be4a95b8"
  60. secret = "9e803791cdef756e75faee68e12b7442"
  61. [feed]
  62. appLength = 200
  63. webLength = 400
  64. archiveFeedLength = 200
  65. archiveFeedExpire = "5m"
  66. bangumiFeedExpire = "5m"
  67. appPullInterval = "5m"
  68. webPullInterval = "15s"
  69. bulkSize = 500
  70. minUpCnt = 10
  71. maxTotalCnt = 100