thumbup-test.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. [rpcServer]
  2. proto = "tcp"
  3. addr = "0.0.0.0:7249"
  4. [grpc]
  5. timeout = "1s"
  6. addr = "0.0.0.0:7245"
  7. [bm]
  8. addr = "0.0.0.0:7246"
  9. timeout = "1s"
  10. [redis]
  11. name = "thumbup-service"
  12. proto = "tcp"
  13. addr = "172.18.33.60:6981"
  14. idle = 10
  15. active = 10
  16. dialTimeout = "1s"
  17. readTimeout = "1s"
  18. writeTimeout = "1s"
  19. idleTimeout = "10s"
  20. StatsExpire = "6h"
  21. UserLikesExpire = "1h"
  22. ItemLikesExpire = "6h"
  23. [tidb]
  24. addr = "172.22.34.51"
  25. dsn = "likes:wy5taQn9CBKy9z5elbZQjnwMZOgpzk0r@tcp(172.22.34.51:4000)/bilibili_likes?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  26. active = 5
  27. idle = 2
  28. idleTimeout ="4h"
  29. queryTimeout = "1s"
  30. execTimeout = "1s"
  31. tranTimeout = "1s"
  32. [tidb.breaker]
  33. window = "3s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [memcache]
  39. name = "thumbup-service"
  40. proto = "tcp"
  41. addr = "172.18.33.61:11230"
  42. idle = 10
  43. active = 10
  44. dialTimeout = "2s"
  45. readTimeout = "2s"
  46. writeTimeout = "2s"
  47. idleTimeout = "7h"
  48. StatsExpire = "6h"
  49. [statDatabus]
  50. key = "9765cdac5894f2ba"
  51. secret = "f4237d712c3ed1e7fab0137b81418b14"
  52. group= "StatLike-MainWebSvr-P"
  53. topic= "StatLike-T"
  54. action="pub"
  55. name = "thumbup-service/stat-pub"
  56. proto = "tcp"
  57. addr = "172.22.33.174:6205"
  58. active = 5
  59. idle = 1
  60. dialTimeout = "1s"
  61. readTimeout = "1s"
  62. writeTimeout = "1s"
  63. idleTimeout = "10s"
  64. [likeDatabus]
  65. key = "9765cdac5894f2ba"
  66. secret = "f4237d712c3ed1e7fab0137b81418b14"
  67. group = "Thumbup-MainWebSvr-P"
  68. topic = "Thumbup-T"
  69. action = "pub"
  70. buffer = 2048
  71. name = "thumbup-pub"
  72. proto = "tcp"
  73. addr = "172.22.33.174:6205"
  74. idle = 1
  75. active = 1
  76. dialTimeout = "1s"
  77. readTimeout = "1s"
  78. writeTimeout = "1s"
  79. idleTimeout = "1s"
  80. [itemDatabus]
  81. key = "9765cdac5894f2ba"
  82. secret = "f4237d712c3ed1e7fab0137b81418b14"
  83. group= "ThumbupItem-MainWebSvr-P"
  84. topic= "ThumbupItem-T"
  85. action="pub"
  86. name = "thumbup-service/item-pub"
  87. proto = "tcp"
  88. addr = "172.22.33.174:6205"
  89. active = 5
  90. idle = 1
  91. dialTimeout = "1s"
  92. readTimeout = "1s"
  93. writeTimeout = "1s"
  94. idleTimeout = "10s"
  95. [userDatabus]
  96. key = "9765cdac5894f2ba"
  97. secret = "f4237d712c3ed1e7fab0137b81418b14"
  98. group= "ThumbupUser-MainWebSvr-P"
  99. topic= "ThumbupUser-T"
  100. action="pub"
  101. name = "thumbup-service/item-pub"
  102. proto = "tcp"
  103. addr = "172.22.33.174:6205"
  104. active = 5
  105. idle = 1
  106. dialTimeout = "1s"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "10s"
  110. [rate]
  111. [rate.urls]
  112. "/x/internal/thumbup/update_upmids" = {limit = 10000.0, burst = 10000}
  113. [thumbup]