playlist-test.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. [identify]
  2. whiteAccessKey = ""
  3. whiteMid = 0
  4. [identify.app]
  5. key = "b1014d7c339a5649"
  6. secret = "75b74b612aa792b112e6504cae44c319"
  7. [identify.memcache]
  8. name = "go-business/identify"
  9. proto = "tcp"
  10. addr = "172.16.33.54:11211"
  11. active = 5
  12. idle = 1
  13. dialTimeout = "1s"
  14. readTimeout = "1s"
  15. writeTimeout = "1s"
  16. idleTimeout = "80s"
  17. [identify.host]
  18. auth = "http://passport.bilibili.com"
  19. secret = "http://open.bilibili.com"
  20. [identify.httpClient]
  21. key = "7c7ac0db1aa05587"
  22. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  23. dial = "30ms"
  24. timeout = "150ms"
  25. keepAlive = "60s"
  26. [identify.httpClient.breaker]
  27. window ="10s"
  28. sleep ="100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [identify.httpClient.url]
  33. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  34. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  35. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  36. [log]
  37. dir = "/data/log/playlist/"
  38. [app]
  39. key = "b1014d7c339a5649"
  40. secret = "75b74b612aa792b112e6504cae44c319"
  41. [HTTPServer]
  42. addr = "0.0.0.0:7151"
  43. timeout = "1s"
  44. [rpcServer2]
  45. [[rpcServer2.servers]]
  46. proto = "tcp"
  47. addr = ":7159"
  48. weight = 10
  49. [rpcServer2.zookeeper]
  50. root = "/microservice/playlist-service/"
  51. addrs = ["172.18.33.172:2181"]
  52. timeout = "60s"
  53. [viewDatabus]
  54. key = "9765cdac5894f2ba"
  55. secret= "1448f5f2cd6029f6af6c5d438cd31edd"
  56. group= "StatView-MainWebSvr-P"
  57. topic= "StatView-T"
  58. action="pub"
  59. name = "playlist/playlist-pub/view"
  60. proto = "tcp"
  61. addr = "172.16.33.158:6205"
  62. idle = 100
  63. active = 100
  64. dialTimeout = "1s"
  65. readTimeout = "60s"
  66. writeTimeout = "1s"
  67. idleTimeout = "10s"
  68. [shareDatabus]
  69. key = "9765cdac5894f2ba"
  70. secret= "1448f5f2cd6029f6af6c5d438cd31edd"
  71. group= "StatShare-MainWebSvr-P"
  72. topic= "StatShare-T"
  73. action="pub"
  74. name = "playlist/playlist-pub/share"
  75. proto = "tcp"
  76. addr = "172.16.33.158:6205"
  77. idle = 100
  78. active = 100
  79. dialTimeout = "1s"
  80. readTimeout = "60s"
  81. writeTimeout = "1s"
  82. idleTimeout = "10s"
  83. [favoriteRPC]
  84. timeout = "1s"
  85. [archiveRPC]
  86. timeout = "1s"
  87. [accountRPC]
  88. timeout = "200ms"
  89. [filterRPC]
  90. timeout = "1s"
  91. [mysql]
  92. addr = "172.16.33.205"
  93. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_playlist?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  94. active = 5
  95. idle = 2
  96. idleTimeout = "4h"
  97. queryTimeout = "100ms"
  98. execTimeout = "100ms"
  99. tranTimeout = "200ms"
  100. [mysql.breaker]
  101. window = "3s"
  102. sleep = "100ms"
  103. bucket = 10
  104. ratio = 0.5
  105. request = 100
  106. [redis]
  107. name = "playlist"
  108. proto = "tcp"
  109. addr = "172.18.33.60:6894"
  110. idle = 10
  111. active = 10
  112. dialTimeout = "1s"
  113. readTimeout = "1s"
  114. writeTimeout = "1s"
  115. idleTimeout = "10s"
  116. statExpire = "24h"
  117. plExpire = "24h"
  118. [httpClient]
  119. key = "b1014d7c339a5649"
  120. secret = "75b74b612aa792b112e6504cae44c319"
  121. dial = "1s"
  122. timeout = "1s"
  123. keepAlive = "60s"
  124. [rule]
  125. maxNameLimit = 80
  126. maxPlDescLimit = 250
  127. maxVideoDescLimit = 80
  128. maxArcChangeLimit = 100
  129. maxVideoCnt = 100
  130. maxPlCnt = 100
  131. maxPlsPageSize = 30
  132. maxPlArcsPs = 100
  133. sortStep = 100
  134. minSort = 0
  135. beginSort = 1000
  136. maxSearchArcPs = 30
  137. maxSearchLimit = 30
  138. powerMids = [101, 27515235, 2089809, 27515232]
  139. [host]
  140. search = "http://s.search.bilibili.co"