thumbup-job-test.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. # thumbup job
  2. [redis]
  3. name = "thumbup-job"
  4. proto = "tcp"
  5. addr = "172.18.33.60:6981"
  6. idle = 10
  7. active = 10
  8. dialTimeout = "1s"
  9. readTimeout = "1s"
  10. writeTimeout = "1s"
  11. idleTimeout = "10s"
  12. statsExpire = "6h"
  13. userLikesExpire = "1h"
  14. itemLikesExpire = "6h"
  15. [memcache]
  16. name = "thumbup-job"
  17. proto = "tcp"
  18. addr = "172.18.33.61:11230"
  19. idle = 10
  20. active = 10
  21. dialTimeout = "2s"
  22. readTimeout = "2s"
  23. writeTimeout = "2s"
  24. idleTimeout = "7h"
  25. StatsExpire = "6h"
  26. [tidb]
  27. addr = "172.22.34.51"
  28. dsn = "likes:wy5taQn9CBKy9z5elbZQjnwMZOgpzk0r@tcp(172.22.34.51:4000)/bilibili_likes?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  29. active = 5
  30. idle = 2
  31. idleTimeout ="4h"
  32. queryTimeout = "1s"
  33. execTimeout = "1s"
  34. tranTimeout = "1s"
  35. [tidb.breaker]
  36. window = "3s"
  37. sleep = "100ms"
  38. bucket = 10
  39. ratio = 0.5
  40. request = 100
  41. [itemTidb]
  42. addr = "172.22.34.51"
  43. dsn = "likes:wy5taQn9CBKy9z5elbZQjnwMZOgpzk0r@tcp(172.22.34.51:4000)/bilibili_likes?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  44. active = 5
  45. idle = 2
  46. idleTimeout ="4h"
  47. queryTimeout = "1s"
  48. execTimeout = "1s"
  49. tranTimeout = "1s"
  50. [itemTidb.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 100
  56. [databus]
  57. [databus.stat]
  58. key = "9765cdac5894f2ba"
  59. secret = "f4237d712c3ed1e7fab0137b81418b14"
  60. group= "StatLike-MainWebSvr-P"
  61. topic= "StatLike-T"
  62. action="pub"
  63. name = "thumbup-service/stat-pub"
  64. proto = "tcp"
  65. addr = "172.22.33.183:6205"
  66. active = 5
  67. idle = 1
  68. dialTimeout = "1s"
  69. readTimeout = "1s"
  70. writeTimeout = "1s"
  71. idleTimeout = "10s"
  72. [databus.like]
  73. key = "9765cdac5894f2ba"
  74. secret = "f4237d712c3ed1e7fab0137b81418b14"
  75. group = "Thumbup-MainWebSvr-S"
  76. topic = "Thumbup-T"
  77. action = "sub"
  78. name = "thumbup-T-sub"
  79. proto = "tcp"
  80. addr = "172.22.33.183:6205"
  81. idle = 1
  82. active = 1
  83. dialTimeout = "1s"
  84. readTimeout = "60s"
  85. writeTimeout = "1s"
  86. idleTimeout = "10s"
  87. [databus.itemLikes]
  88. key = "9765cdac5894f2ba"
  89. secret = "f4237d712c3ed1e7fab0137b81418b14"
  90. group = "ThumbupItem-MainWebSvr-S"
  91. topic = "ThumbupItem-T"
  92. action = "sub"
  93. buffer = 2048
  94. name = "itemLikes-sub"
  95. proto = "tcp"
  96. addr = "172.22.33.183:6205"
  97. idle = 100
  98. active = 100
  99. dialTimeout = "1s"
  100. readTimeout = "60s"
  101. writeTimeout = "1s"
  102. idleTimeout = "10s"
  103. [databus.userLikes]
  104. key = "9765cdac5894f2ba"
  105. secret = "f4237d712c3ed1e7fab0137b81418b14"
  106. group = "ThumbupUser-MainWebSvr-S"
  107. topic = "ThumbupUser-T"
  108. action = "sub"
  109. buffer = 2048
  110. name = "userLikes-sub"
  111. proto = "tcp"
  112. addr = "172.22.33.174:6205"
  113. idle = 100
  114. active = 100
  115. dialTimeout = "1s"
  116. readTimeout = "60s"
  117. writeTimeout = "1s"
  118. idleTimeout = "10s"
  119. [thumbup]
  120. [merge]
  121. maxSize = 51200
  122. interval = "1m"
  123. buffer = 10240
  124. worker = 9
  125. [likedatabusutil]
  126. size = 1
  127. chan = 10240
  128. num = 1
  129. ticker = "1s"
  130. [itemlikesdatabusutil]
  131. size = 100
  132. chan = 10240
  133. num = 10
  134. ticker = "1s"
  135. [userlikesdatabusutil]
  136. size = 100
  137. chan = 10240
  138. num = 10
  139. ticker = "1s"
  140. [statMerge]
  141. business = "archive"
  142. target = 8
  143. sources = [1,2,3]