convey-test.toml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/article.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:6750"
  6. family = "article"
  7. [identify]
  8. whiteAccessKey = ""
  9. whiteMid = 0
  10. csrfOn = true
  11. [identify.app]
  12. key = "9cfc54570033cd61"
  13. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  14. [identify.memcache]
  15. name = "go-business/identify"
  16. proto = "tcp"
  17. addr = "172.16.33.54:11211"
  18. active = 5
  19. idle = 10
  20. dialTimeout = "1s"
  21. readTimeout = "1s"
  22. writeTimeout = "1s"
  23. idleTimeout = "80s"
  24. [identify.host]
  25. auth = "http://passport.bilibili.co"
  26. secret = "http://open.bilibili.co"
  27. [identify.httpClient]
  28. key = "9cfc54570033cd61"
  29. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  30. dial = "30ms"
  31. timeout = "100ms"
  32. keepAlive = "60s"
  33. [identify.httpClient.breaker]
  34. window = "10s"
  35. sleep = "100ms"
  36. bucket = 10
  37. ratio = 0.5
  38. request = 100
  39. [identify.httpClient.url]
  40. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  41. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  42. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  43. [rpcServer2]
  44. token= "123456"
  45. [[rpcServer2.servers]]
  46. proto = "tcp"
  47. addr = "0.0.0.0:6755"
  48. weight = 10
  49. [rpcServer2.zookeeper]
  50. root = "/microservice/article-test/"
  51. addrs = ["172.18.33.169:2181"]
  52. timeout = "1s"
  53. [displayInfoc]
  54. taskID = "1"
  55. proto = "tcp"
  56. addr = "127.0.0.1:80"
  57. chanSize = 10240
  58. [clickInfoc]
  59. taskID = "1"
  60. proto = "tcp"
  61. addr = "127.0.0.1:80"
  62. chanSize = 10240
  63. [AIclickInfoc]
  64. taskID = "1"
  65. proto = "tcp"
  66. addr = "127.0.0.1:80"
  67. chanSize = 10240
  68. [ShowInfoc]
  69. taskID = "1"
  70. proto = "tcp"
  71. addr = "127.0.0.1:80"
  72. chanSize = 10240
  73. [CheatInfoc]
  74. taskID = "1"
  75. proto = "tcp"
  76. addr = "127.0.0.1:80"
  77. chanSize = 10240
  78. [log]
  79. dir = "/data/log/article"
  80. [app]
  81. key = "9cfc54570033cd61"
  82. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  83. [bm]
  84. addr = "0.0.0.0:6751"
  85. timeout = "1s"
  86. [HTTPClient]
  87. key = "9cfc54570033cd61"
  88. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  89. dial = "50ms"
  90. timeout = "1s"
  91. keepAlive = "60s"
  92. timer = 128
  93. [HTTPClient.breaker]
  94. window ="10s"
  95. sleep ="10ms"
  96. bucket = 10
  97. ratio = 0.5
  98. request = 100
  99. [messageHTTPClient]
  100. key = "9cfc54570033cd61"
  101. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  102. dial = "50ms"
  103. timeout = "1s"
  104. keepAlive = "60s"
  105. timer = 128
  106. [messageHTTPClient.breaker]
  107. window ="10s"
  108. sleep ="10ms"
  109. bucket = 10
  110. ratio = 0.5
  111. request = 100
  112. [tracer]
  113. family = "platform/article"
  114. proto = "unixgram"
  115. addr = "/var/run/dapper-collect/dapper-collect.sock"
  116. [accountRPC]
  117. pullInterval = "10s"
  118. [accountRPC.client]
  119. timeout = "1500ms"
  120. [accountRPC.client.breaker]
  121. window ="3s"
  122. sleep ="100ms"
  123. bucket = 10
  124. ratio = 0.5
  125. request = 100
  126. [accountRPC.conf]
  127. domain = "api.bilibili.co"
  128. key = "53e2fa226f5ad348"
  129. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  130. [tagRPC]
  131. pullInterval = "10s"
  132. [tagRPC.client]
  133. proto = "tcp"
  134. addr = "172.16.33.56:6099"
  135. timeout = "1s"
  136. timer = 1000
  137. [tagRPC.client.breaker]
  138. window ="10s"
  139. sleep ="10ms"
  140. bucket = 10
  141. ratio = 0.5
  142. request = 100
  143. [tagRPC.zookeeper]
  144. root = "/microservice/tag-service/"
  145. addrs = [" 172.16.33.169:2181"]
  146. timeout = "30s"
  147. [favRPC]
  148. pullInterval = "10s"
  149. [favRPC.client]
  150. proto = "tcp"
  151. addr = "172.16.33.56:6019"
  152. timeout = "1s"
  153. timer = 1000
  154. [favRPC.client.breaker]
  155. window ="10s"
  156. sleep ="10ms"
  157. bucket = 10
  158. ratio = 0.5
  159. request = 100
  160. [favRPC.zookeeper]
  161. root = "/microservice/favorite/"
  162. addrs = [" 172.16.33.169:2181"]
  163. timeout = "30s"
  164. [arcRPC]
  165. pullInterval = "10s"
  166. group = "test"
  167. [arcRPC.client]
  168. proto = "tcp"
  169. addr = "172.16.33.56:6279"
  170. token = "123456"
  171. timeout = "1s"
  172. timer = 1000
  173. [arcRPC.client.breaker]
  174. window ="3s"
  175. sleep ="100ms"
  176. bucket = 10
  177. ratio = 0.5
  178. request = 100
  179. [arcRPC.zookeeper]
  180. root = "/microservice/archive-service/"
  181. addrs = [" 172.16.33.169:2181"]
  182. timeout = "30s"
  183. [coinRPC]
  184. pullInterval = "10s"
  185. [coinRPC.client]
  186. proto = "tcp"
  187. addr = "172.16.33.56:6159"
  188. timeout = "1s"
  189. timer = 1000
  190. [coinRPC.client.breaker]
  191. window ="10s"
  192. sleep ="10ms"
  193. bucket = 10
  194. ratio = 0.5
  195. request = 100
  196. [coinRPC.zookeeper]
  197. root = "/microservice/coin-service/"
  198. addrs = [" 172.16.33.54:2181"]
  199. timeout = "30s"
  200. [ResRPC]
  201. pullInterval = "10s"
  202. [ResRPC.client]
  203. proto = "tcp"
  204. timeout = "1s"
  205. timer = 1000
  206. [resRPC.client.breaker]
  207. window ="10s"
  208. sleep ="10ms"
  209. bucket = 10
  210. ratio = 0.5
  211. request = 100
  212. [resRPC.zookeeper]
  213. root = "/microservice/resource-service/"
  214. addrs = ["172.16.33.54:2181"]
  215. timeout = "30s"
  216. [ThumbupRPC]
  217. pullInterval = "10s"
  218. [ThumbupRPC.client]
  219. proto = "tcp"
  220. timeout = "1s"
  221. timer = 1000
  222. [ThumbupRPC.client.breaker]
  223. window ="10s"
  224. sleep ="10ms"
  225. bucket = 10
  226. ratio = 0.5
  227. request = 100
  228. [ThumbupRPC.zookeeper]
  229. root = "/microservice/thumbup-service/"
  230. addrs = ["172.16.33.172:2181"]
  231. timeout = "30s"
  232. [FilterRPC]
  233. pullInterval = "10s"
  234. [FilterRPC.client]
  235. proto = "tcp"
  236. timeout = "10s"
  237. timer = 1000
  238. [FilterRPC.client.breaker]
  239. window ="10s"
  240. sleep ="10ms"
  241. bucket = 10
  242. ratio = 0.5
  243. request = 100
  244. [FilterRPC.zookeeper]
  245. root = "/microservice/filter-service/"
  246. addrs = ["172.16.33.172:2181"]
  247. timeout = "30s"
  248. [HistoryRPC]
  249. pullInterval = "10s"
  250. [HistoryRPC.client]
  251. proto = "tcp"
  252. timeout = "10s"
  253. timer = 1000
  254. [HistoryRPC.client.breaker]
  255. window ="10s"
  256. sleep ="10ms"
  257. bucket = 10
  258. ratio = 0.5
  259. request = 100
  260. [HistoryRPC.zookeeper]
  261. root = "/microservice/history/"
  262. addrs = ["172.16.33.172:2181"]
  263. timeout = "30s"
  264. [redis]
  265. name = "article"
  266. proto = "tcp"
  267. addr = "172.18.33.61:6881"
  268. idle = 10
  269. active = 10
  270. dialTimeout = "1s"
  271. readTimeout = "1s"
  272. writeTimeout = "1s"
  273. idleTimeout = "10s"
  274. [mysql]
  275. [mysql.article]
  276. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_article?timeout=500s&readTimeout=500s&writeTimeout=500s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  277. active = 5
  278. idle = 2
  279. idleTimeout ="4h"
  280. queryTimeout = "1000s"
  281. execTimeout = "200s"
  282. tranTimeout = "2000s"
  283. [mysql.article.breaker]
  284. window = "3s"
  285. sleep = "100ms"
  286. bucket = 10
  287. ratio = 0.5
  288. request = 100
  289. [memcache]
  290. name = "article"
  291. proto = "tcp"
  292. addr = "172.18.33.61:11233"
  293. idle = 10
  294. active = 10
  295. dialTimeout = "2s"
  296. readTimeout = "2s"
  297. writeTimeout = "2s"
  298. idleTimeout = "7h"
  299. expire = "15m"
  300. articleExpire = "10m"
  301. articleNoFilterExpire = "5m"
  302. statsExpire = "15m"
  303. likeExpire = "72h"
  304. cardsExpire = "6h"
  305. submitExpire = "2m"
  306. ListArtsExpire = "24h"
  307. ListExpire = "24h"
  308. ArtListExpire = "24h"
  309. UpListsExpire = "6h"
  310. ListReadExpire = "1h"
  311. HotspotExpire = "30m"
  312. AuthorExpire = "24h"
  313. [ecode]
  314. domain = "172.16.33.248:6401"
  315. # domain = "api.bilibili.co"//线上
  316. all = "1h"
  317. diff = "5m"
  318. [ecode.clientconfig]
  319. key = "test" # 测试环境,线上使用业务自己的
  320. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  321. dial = "2000ms"
  322. timeout = "2s"
  323. keepAlive = "10s"
  324. timer = 128
  325. [ecode.clientconfig.breaker]
  326. window ="3s"
  327. sleep ="100ms"
  328. bucket = 10
  329. ratio = 0.5
  330. request = 100
  331. [ecode.app]
  332. key = "test" # 测试环境,线上使用业务自己的
  333. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  334. [statDatabus]
  335. key = "key"
  336. secret= "secret"
  337. group= "ArticleStat-Article-P"
  338. topic= "ArticleStat-T"
  339. action="pub"
  340. name = "article-job/article-stat-sub"
  341. proto = "tcp"
  342. addr = "172.16.33.158:6205"
  343. idle = 100
  344. active = 100
  345. dialTimeout = "1s"
  346. readTimeout = "60s"
  347. writeTimeout = "1s"
  348. idleTimeout = "10s"
  349. [[RankCategories]]
  350. name = "月榜"
  351. id = 1
  352. [[RankCategories]]
  353. name = "周榜"
  354. id = 2
  355. [[RankCategories]]
  356. name = "昨天"
  357. id = 3
  358. [[RankCategories]]
  359. name = "前天"
  360. id = 4
  361. [message]
  362. URL = "http://message.bilibili.com/api/notify/send.user.notify.do"
  363. MC = "1_12_1"
  364. [cards]
  365. TicketURL = "http://uat-show.bilibili.com/api/ticket-b/project/getcard"
  366. MallURL = "http://uat-mall.bilibili.co/mall-items/items/itemsListByQuery"
  367. AudioURL = "http://uat-api.bilibili.co/x/internal/v1/audio/songs/batch"
  368. BangumiURL = "http://bangumi.bilibili.co/ext/internal/cardinfos"
  369. [hbase]
  370. master = ""
  371. meta = ""
  372. dialTimeout = "1s"
  373. readTimeout = "150ms"
  374. readsTimeout = "600ms"
  375. writeTimeout = "200ms"
  376. writesTimeout = "600ms"
  377. [hbase.zookeeper]
  378. root = ""
  379. addrs = ["172.18.33.163:2181","172.18.33.164:2181","172.18.33.165:2181"]
  380. timeout = "30s"
  381. [bfs]
  382. timeout="5s"
  383. maxFileSize=5242880
  384. bucket="article"
  385. url="http://bfs.bilibili.co/bfs/article/"
  386. method="PUT"
  387. key="4d08035f0b341509"
  388. secret="ed4161d96c7612b670f75fa4be4e15"
  389. [antispam]
  390. on=true
  391. second=3
  392. n=100
  393. hour=12
  394. m=1000
  395. [antispam.redis]
  396. name = "article"
  397. proto = "tcp"
  398. addr = "172.16.33.54:6379"
  399. idle = 10
  400. active = 10
  401. dialTimeout = "1s"
  402. readTimeout = "1s"
  403. writeTimeout = "1s"
  404. idleTimeout = "10s"
  405. [degradeConfig]
  406. expire = 86400
  407. [degradeConfig.memcache]
  408. name = "article"
  409. proto = "tcp"
  410. addr = "172.16.33.54:11211"
  411. idle = 10
  412. active = 10
  413. dialTimeout = "2s"
  414. readTimeout = "2s"
  415. writeTimeout = "2s"
  416. idleTimeout = "7h"
  417. [article]
  418. expireUpper = "72h"
  419. expireArtLikes = "72h"
  420. expireSortArts = "24h"
  421. TTLSortArts = "72h"
  422. ExpireRank = "10m"
  423. TTLRank = "24m"
  424. ExpireMaxLike = "720h"
  425. ExpireHotspot = "6h"
  426. creationDefaultSize = 20
  427. creationMaxSize = 200
  428. upperDraftLimit = 30
  429. upperArticleLimit = 500
  430. updateRecommendsInteval = "5m"
  431. maxRecommendPsSize = 100
  432. maxRecommendPnSize = 10000
  433. maxUpperListPsSize = 100
  434. maxArchives = 40
  435. maxComplaintReasonLimit = 1000
  436. maxArticleMetas = 100
  437. maxApplyContentLimit = 5000
  438. maxApplyCategoryLimit = 200
  439. maxLikeMidLen = 200
  440. RecommendAidLen = 20
  441. SortLimitTime = "504h"
  442. UpdateBannersInteval = "5m"
  443. bannerIDs = [2127,2128,2129,2130,2131,2132,2133,2134]
  444. ActBannerIDs = [2442]
  445. RecommendRegionLen = 20
  446. SkyHorseRecommendRegionLen = 5
  447. RankHost = "http://172.16.33.57:10800"
  448. MessageMids = []
  449. MaxContentSize = 1048576
  450. MaxContentLength = 20000
  451. MinContentLength = 200
  452. ActAddURI = "http://matsuri.bilibili.co/api/likes/item/add/%d"
  453. ActDelURI = "http://matsuri.bilibili.co/api/likes/item/up"
  454. ActURI = "http://matsuri.bilibili.co/activity/list/article"
  455. ListLimit = 10
  456. ListArtsLimit = 500
  457. AppCategoryName = "更多"
  458. AppCategoryURL = "http://i0.hdslb.com/bfs/archive/2740eba8124516ac62edf84f65a858ed68b390de.png"
  459. SkyHorseURL = ""
  460. SkyHorseGray = [1]
  461. SkyHorseGrayUsers = [1]
  462. ListDefaultImage = "http://i0.hdslb.com/bfs/archive/2740eba8124516ac62edf84f65a858ed68b390de.png"
  463. ExpireReadPing = "2m"
  464. ExpireReadSet = "24h"