assist-service.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # This is a TOML document. Boom.
  2. tick = "5m"
  3. maxAssCnt = 10
  4. maxTypeCnt = 100
  5. [host]
  6. api = "http://api.bilibili.com"
  7. member = "http://member.bilibili.com"
  8. account = "http://account.bilibili.com"
  9. message = "http://message.bilibili.com"
  10. [xlog]
  11. dir = "/data/log/assist-service/"
  12. [xlog.elk]
  13. project = "assist-service"
  14. addr = "172.18.20.17:8520"
  15. chanSize = 1024
  16. [app]
  17. key = "b8f239ca38a53308"
  18. secret = "5460ef72fe13c10dfb53442b9111427e"
  19. [relationSub]
  20. key = "0QEO9F8JuuIxZzNDvklH"
  21. secret = "0QEO9F8JuuIxZzNDvklI"
  22. group = "Relation-Assist-S"
  23. topic = "Relation-T"
  24. action = "sub"
  25. offset = "old"
  26. buffer = 128
  27. name = "assist-service/relation-sub"
  28. proto = "tcp"
  29. addr = "172.16.33.158:6205"
  30. idle = 100
  31. active = 100
  32. dialTimeout = "1s"
  33. readTimeout = "60s"
  34. writeTimeout = "1s"
  35. idleTimeout = "10s"
  36. [httpClient]
  37. [httpClient.normal]
  38. key = "b8f239ca38a53308"
  39. secret = "5460ef72fe13c10dfb53442b9111427e"
  40. dial = "500ms"
  41. timeout = "1s"
  42. keepAlive = "60s"
  43. timer = 10
  44. [httpClient.normal.breaker]
  45. window = "10s"
  46. sleep = "100ms"
  47. bucket = 10
  48. ratio = 0.5
  49. request = 100
  50. [httpClient.slow]
  51. key = "b8f239ca38a53308"
  52. secret = "5460ef72fe13c10dfb53442b9111427e"
  53. dial = "500ms"
  54. timeout = "1s"
  55. keepAlive = "60s"
  56. timer = 10
  57. [httpClient.slow.breaker]
  58. window = "10s"
  59. sleep = "100ms"
  60. bucket = 10
  61. ratio = 0.5
  62. request = 100
  63. [bm]
  64. [bm.inner]
  65. addr = "0.0.0.0:6721"
  66. maxListen = 1000
  67. timeout = "2s"
  68. [bm.local]
  69. addr = "0.0.0.0:6722"
  70. maxListen = 1000
  71. timeout = "1s"
  72. [rpcServer2]
  73. discoverOff = false
  74. token = "123456"
  75. [[rpcServer2.servers]]
  76. proto = "tcp"
  77. addr = "0.0.0.0:6729"
  78. weight = 10
  79. group = "uat"
  80. [rpcServer2.zookeeper]
  81. root = "/microservice/assist-service/"
  82. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  83. timeout = "30s"
  84. [db]
  85. [db.assist]
  86. name = "[archive]tcp@172.16.33.54:3306"
  87. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_assist?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  88. active = 5
  89. idle = 5
  90. idleTimeout ="4h"
  91. queryTimeout = "100ms"
  92. execTimeout = "100ms"
  93. tranTimeout = "200ms"
  94. [db.assist.breaker]
  95. window = "3s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [memcache]
  101. [memcache.assist]
  102. name = "assist-service"
  103. proto = "tcp"
  104. addr = "172.16.33.54:11212"
  105. active = 10
  106. idle = 5
  107. dialTimeout = "1s"
  108. readTimeout = "1s"
  109. writeTimeout = "1s"
  110. idleTimeout = "80s"
  111. [redis]
  112. [redis.assist]
  113. name = "assist/assist"
  114. proto = "tcp"
  115. addr = "172.16.33.54:6381"
  116. idle = 100
  117. active = 100
  118. dialTimeout = "1s"
  119. readTimeout = "1s"
  120. writeTimeout = "1s"
  121. idleTimeout = "10s"
  122. expire = "24h"