article-test.toml 11 KB

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