upcredit-service.toml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/upcredit-service.pid"
  5. dir = "./"
  6. log = "/data/log/upcredit-service/"
  7. family = "upcredit-service"
  8. trace = false
  9. debug = false
  10. istest = true
  11. [app]
  12. key = "b8f239ca38a53308"
  13. secret = "5460ef72fe13c10dfb53442b9111427e"
  14. [xlog]
  15. dir = "/data/log/upcredit-service/"
  16. family = "upcredit-service"
  17. stdout = true
  18. [statsd]
  19. project = "upcredit-service"
  20. addr = "172.18.20.15:8200"
  21. chanSize = 10240
  22. [httpClient]
  23. [httpClient.normal]
  24. key = "b8f239ca38a53308"
  25. secret = "5460ef72fe13c10dfb53442b9111427e"
  26. dial = "500ms"
  27. timeout = "1s"
  28. keepAlive = "60s"
  29. timer = 10
  30. [httpClient.normal.breaker]
  31. window = "10s"
  32. sleep = "100ms"
  33. bucket = 10
  34. ratio = 0.5
  35. request = 100
  36. [httpClient.slow]
  37. key = "b8f239ca38a53308"
  38. secret = "5460ef72fe13c10dfb53442b9111427e"
  39. dial = "1s"
  40. timeout = "10s"
  41. keepAlive = "60s"
  42. timer = 10
  43. [httpClient.slow.breaker]
  44. window = "10s"
  45. sleep = "100ms"
  46. bucket = 10
  47. ratio = 0.5
  48. request = 100
  49. [bm]
  50. [bm.inner]
  51. addr = "0.0.0.0:7730"
  52. maxListen = 1000
  53. timeout = "1s"
  54. [bm.local]
  55. addr = "0.0.0.0:7731"
  56. maxListen = 100
  57. timeout = "1s"
  58. [db]
  59. [db.upcrm]
  60. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  61. active = 5
  62. idle = 1
  63. idleTimeout ="4h"
  64. # crm读库
  65. [db.upcrmreader]
  66. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  67. active = 5
  68. idle = 1
  69. idleTimeout ="4h"
  70. [ecode]
  71. domain = "uat-api.bilibili.co"
  72. all = "1h"
  73. diff = "5m"
  74. [ecode.clientconfig]
  75. key = "c05dd4e1638a8af0"
  76. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  77. dial = "2000ms"
  78. timeout = "2s"
  79. keepAlive = "10s"
  80. timer = 128
  81. [ecode.clientconfig.breaker]
  82. window ="3s"
  83. sleep ="100ms"
  84. bucket = 10
  85. ratio = 0.5
  86. request = 100
  87. [identify]
  88. whiteAccessKey = ""
  89. whiteMid = 0
  90. csrf = false
  91. [identify.app]
  92. key = "53e2fa226f5ad348"
  93. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  94. [identify.memcache]
  95. name = "go-business/identify"
  96. proto = "tcp"
  97. addr = "/tmp/uat-platform-identify-mc.sock"
  98. active = 10
  99. idle = 5
  100. dialTimeout = "1s"
  101. readTimeout = "1s"
  102. writeTimeout = "1s"
  103. idleTimeout = "80s"
  104. [identify.host]
  105. auth = "http://uat-passport.bilibili.com"
  106. secret = "http://uat-open.bilibili.com"
  107. [identify.httpClient]
  108. key = "53e2fa226f5ad348"
  109. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  110. dial = "500ms"
  111. timeout = "800ms"
  112. keepAlive = "60s"
  113. [identify.httpClient.breaker]
  114. window = "10s"
  115. sleep = "100ms"
  116. bucket = 10
  117. ratio = 0.5
  118. request = 100
  119. [identify.httpClient.url]
  120. "http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  121. "http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  122. "http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  123. [monitor]
  124. moni="http://moni.bilibili.co/dashboard/db/databus?orgId=1"
  125. host = "http://bap.bilibili.co"
  126. username="fengpengfei"
  127. appToken = "jLgSvndTeranxGMN"
  128. appSecret = "CcCdlEBYqxqrgAieJuFVZUsgPmweLRms"
  129. intervalAlarm = "5m"
  130. [auth]
  131. managerHost = "http://uat-manager.bilibili.co"
  132. dashboardHost = "http://dashboard-mng.bilibili.co"
  133. dashboardCaller = "manager-go"
  134. [auth.DsHTTPClient]
  135. key = "manager-go"
  136. secret = "949bbb2dd3178252638c2407578bc7ad"
  137. dial = "1s"
  138. timeout = "1s"
  139. keepAlive = "60s"
  140. [auth.DsHTTPClient.breaker]
  141. window = "3s"
  142. sleep = "100ms"
  143. bucket = 10
  144. ratio = 0.5
  145. request = 100
  146. [auth.MaHTTPClient]
  147. key = "f6433799dbd88751"
  148. secret = "36f8ddb1806207fe07013ab6a77a3935"
  149. dial = "1s"
  150. timeout = "1s"
  151. keepAlive = "60s"
  152. [auth.MaHTTPClient.breaker]
  153. window = "3s"
  154. sleep = "100ms"
  155. bucket = 10
  156. ratio = 0.5
  157. request = 100
  158. [auth.session]
  159. sessionIDLength = 32
  160. cookieLifeTime = 1800
  161. cookieName = "mng-go"
  162. domain = ".bilibili.co"
  163. [auth.session.Memcache]
  164. name = "go-business/auth"
  165. proto = "unix"
  166. addr = "/tmp/uat-manager-auth-mc.sock"
  167. active = 10
  168. idle = 5
  169. dialTimeout = "1s"
  170. readTimeout = "1s"
  171. writeTimeout = "1s"
  172. idleTimeout = "80s"
  173. [CreditLogSub]
  174. key = "0PvKGhAqDvsK7zitmS8t"
  175. secret = "0PvKGhAqDvsK7zitmS8u"
  176. group = "UpCreditLog-MainArchive-S"
  177. topic = "UpCreditLog-T"
  178. action = "sub"
  179. offset = "old"
  180. buffer = 128
  181. name = "upcredit-service/sub"
  182. proto = "tcp"
  183. addr = "172.16.33.158:6205"
  184. idle = 1
  185. active = 10
  186. dialTimeout = "1s"
  187. readTimeout = "60s"
  188. writeTimeout = "1s"
  189. idleTimeout = "5s"
  190. upChanSize = 1024
  191. consumeLimit = 10
  192. routineLimit = 5
  193. [BusinessBinLogSub]
  194. key = "0PvKGhAqDvsK7zitmS8t"
  195. secret = "0PvKGhAqDvsK7zitmS8u"
  196. group = "BusinessUpBinLog-MainArchive-S"
  197. topic = "BusinessUpBinLog-T"
  198. action = "sub"
  199. offset = "old"
  200. buffer = 128
  201. name = "upcredit-service/sub"
  202. proto = "tcp"
  203. addr = "172.16.33.158:6205"
  204. idle = 1
  205. active = 10
  206. dialTimeout = "1s"
  207. readTimeout = "60s"
  208. writeTimeout = "1s"
  209. idleTimeout = "5s"
  210. upChanSize = 1024
  211. [RunStatJobConf]
  212. StartTime = "16:41:00"
  213. WorkerNumber = 10
  214. [MiscConf]
  215. CreditLogWriteRoutineNum = 2
  216. BusinessBinLogLimitRate = 500.0
  217. [ElectionZooKeeper]
  218. Root = "/microservice/upcredit-service"
  219. Addrs = ["172.18.33.50:2199"]
  220. Timeout = "5s"