relation-service-example.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. [log]
  2. stdout = true
  3. [host]
  4. passport = "http://uat-passport.bilibili.co"
  5. [RPCClient2]
  6. [RPCClient2.member]
  7. timeout = "1s"
  8. [bm]
  9. addr = "0.0.0.0:6331"
  10. maxListen = 1000
  11. timeout = "10s"
  12. [mysql]
  13. addr = "172.16.33.205:3306"
  14. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/relation?timeout=15s&readTimeout=15s&writeTimeout=15s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  15. active = 5
  16. idle = 2
  17. idleTimeout ="4h"
  18. queryTimeout = "100ms"
  19. execTimeout = "100ms"
  20. tranTimeout = "200ms"
  21. [memcache]
  22. name = "relation-job"
  23. proto = "tcp"
  24. addr = "172.18.33.61:11212"
  25. idle = 5
  26. active = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "24h"
  32. [redis]
  33. name = "relation-service"
  34. proto = "tcp"
  35. addr = "172.18.33.60:6969"
  36. idle = 100
  37. active = 100
  38. dialTimeout = "1s"
  39. readTimeout = "1s"
  40. writeTimeout = "1s"
  41. idleTimeout = "10s"
  42. expire = "720h"
  43. [rpcServer]
  44. token="1234"
  45. proto = "tcp"
  46. addr = "0.0.0.0:6339"
  47. weight = 10
  48. [verify]
  49. openServiceHost= "http://open.bilibili.co"
  50. [verify.httpClient]
  51. dial = "3000ms"
  52. timeout = "3000ms"
  53. keepAlive = "60s"
  54. key = "53e2fa226f5ad348"
  55. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  56. [clearPath]
  57. following = "http://api.bilibili.co/x/internal/relation/cache/following/update"
  58. follower = "http://api.bilibili.co/x/internal/relation/cache/follower/del"
  59. stat = "http://api.bilibili.co/x/internal/relation/cache/stat/del"
  60. [apiPath]
  61. followersNotify = "http://message.bilibili.co/api/notify/send.user.notify.do"
  62. [httpClient]
  63. key = "e7482d29be4a95b8"
  64. secret = "9e803791cdef756e75faee68e12b7442"
  65. dial = "100ms"
  66. timeout = "1s"
  67. keepAlive = "60s"
  68. timer = 128
  69. [httpClient.breaker]
  70. window = "3s"
  71. sleep = "100ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [app]
  76. key = "e7482d29be4a95b8"
  77. secret = "9e803791cdef756e75faee68e12b7442"
  78. [databus]
  79. key = "0QBAaL5f8hupBjLQydZt"
  80. secret = "0QBAaL5f8hupBjLQydZu"
  81. group = "Relation-Friends-S"
  82. topic = "Relation-T"
  83. action = "sub"
  84. offset = "old"
  85. buffer = 2048
  86. name = "go-common/app/job/main/relation/databus"
  87. proto = "tcp"
  88. addr = "172.16.33.158:6205"
  89. idle = 100
  90. active = 100
  91. dialTimeout = "1s"
  92. readTimeout = "60s"
  93. writeTimeout = "1s"
  94. idleTimeout = "10s"
  95. [sms]
  96. phone="15121003430,13601914616"
  97. token="460d52f1-dafe-44a2-911a-9f308968309a"
  98. [relation]
  99. maxFollowingCached = 1000
  100. maxFollowerCached = 1000
  101. maxWhisperCached = 1000
  102. maxFollowingLimit = 1000
  103. mediumFollowingLimit = 5
  104. minFollowingLimit = 3
  105. maxBlackLimit = 200
  106. monitor = false
  107. followersUnread = "168h"
  108. achievekey="VELvdAga7rbzL1O8"
  109. Period="1s"
  110. [statcache]
  111. size=4096
  112. expire="10s"
  113. leastFollower=10000
  114. [infoc]
  115. taskID = "000072"
  116. proto = "tcp"
  117. addr = "172.19.100.20:5401"
  118. chanSize = 10240
  119. [antispam]
  120. on=true
  121. second=2
  122. n=1
  123. hour=12
  124. m=500
  125. [antispam.redis]
  126. name = "relation/relation-service"
  127. proto = "unix"
  128. addr = "/tmp/uat-relation-redis.sock"
  129. idle = 100
  130. active = 100
  131. dialTimeout = "500ms"
  132. readTimeout = "1s"
  133. writeTimeout = "1s"
  134. idleTimeout = "80s"
  135. expire = "10m"
  136. [rate]
  137. [rate.apps]
  138. "relationappkey" = {limit = 10000.0, burst = 10000}
  139. [rate.urls]
  140. "/x/internal/relation/following/add" = {limit = 30000.0, burst = 10000}
  141. [wardenServer]
  142. addr = "0.0.0.0:9000"
  143. timeout = "1s"