usersuit-admin-test.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. perf = "0.0.0.0:7270"
  6. family = "usersuit-admin"
  7. env = "qa"
  8. [xlog]
  9. dir = "/data/log/usersuit-admin"
  10. [tracer]
  11. family = "usersuit-admin"
  12. proto = "unixgram"
  13. addr = "/var/run/dapper-collect/dapper-collect.sock"
  14. [bm]
  15. [bm.inner]
  16. addr = "0.0.0.0:7271"
  17. maxListen = 1000
  18. timeout = "1s"
  19. [auth]
  20. managerHost = "http://uat-manager.bilibili.co"
  21. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  22. dashboardCaller = "manager-go"
  23. [auth.DsHTTPClient]
  24. key = "manager-go"
  25. secret = "949bbb2dd3178252638c2407578bc7ad"
  26. dial = "1s"
  27. timeout = "1s"
  28. keepAlive = "60s"
  29. [auth.DsHTTPClient.breaker]
  30. window = "3s"
  31. sleep = "100ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [auth.MaHTTPClient]
  36. key = "f6433799dbd88751"
  37. secret = "36f8ddb1806207fe07013ab6a77a3935"
  38. dial = "1s"
  39. timeout = "1s"
  40. keepAlive = "60s"
  41. [auth.MaHTTPClient.breaker]
  42. window = "3s"
  43. sleep = "100ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [auth.session]
  48. sessionIDLength = 32
  49. cookieLifeTime = 1800
  50. cookieName = "mng-go"
  51. domain = ".bilibili.co"
  52. [auth.session.Memcache]
  53. name = "go-business/auth"
  54. proto = "tcp"
  55. addr = "172.18.33.61:11219"
  56. active = 5
  57. idle = 10
  58. dialTimeout = "1s"
  59. readTimeout = "1s"
  60. writeTimeout = "1s"
  61. idleTimeout = "80s"
  62. [accountRPC]
  63. timeout = "1s"
  64. [db]
  65. [db.usersuit]
  66. addr = "172.16.33.205:3309"
  67. dsn = "usersuit:cDXL6vncmCQanx4iMgGogu6gYz33NmA1@tcp(172.16.33.205:3309)/usersuit?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  68. readDSN = ["usersuit:cDXL6vncmCQanx4iMgGogu6gYz33NmA1@tcp(172.16.33.205:3309)/usersuit?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  69. active = 5
  70. idle = 2
  71. queryTimeout = "100ms"
  72. execTimeout = "100ms"
  73. tranTimeout = "200ms"
  74. [db.usersuit.breaker]
  75. window = "3s"
  76. sleep = "100ms"
  77. bucket = 10
  78. ratio = 0.5
  79. request = 100
  80. [host]
  81. bfs = "http://uat-bfs.bilibili.co"
  82. #bfs = "http://bfs.bilibili.co"
  83. manager = "http://manager.bilibili.co"
  84. msg = "http://message.bilibili.co"
  85. passport = "http://passport.bilibili.co"
  86. [bfs]
  87. bucket = "face"
  88. key = "792d70f16e958493"
  89. secret = "08525fe929bdb26c3a6009afd7318f"
  90. [httpClient]
  91. key = "837f620f5c0a8010"
  92. secret = "2a9057021014b4b843b635664c69d5df"
  93. dial = "500ms"
  94. timeout = "1s"
  95. keepAlive = "60s"
  96. [httpClient.breaker]
  97. window = "3s"
  98. sleep = "100ms"
  99. bucket = 10
  100. ratio = 0.5
  101. request = 100
  102. [redis]
  103. name = "usersuit"
  104. proto = "tcp"
  105. addr = "127.0.0.1:6379"
  106. idle = 100
  107. active = 100
  108. dialTimeout = "1s"
  109. readTimeout = "1s"
  110. writeTimeout = "1s"
  111. idleTimeout = "10s"
  112. [accountNotify]
  113. key = "4ba46ba31f9a44ef"
  114. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  115. group = "AccountNotify-MainAccount-P"
  116. topic = "AccountNotify-T"
  117. action = "pub"
  118. offset = "old"
  119. buffer = 128
  120. name = "usersuit-admin/databus"
  121. proto = "tcp"
  122. addr = "172.16.33.158:6205"
  123. active = 1
  124. idle = 1
  125. dialTimeout = "1s"
  126. readTimeout = "1s"
  127. writeTimeout = "1s"
  128. idleTimeout = "10s"
  129. [memcache]
  130. name = "usersuit-service"
  131. proto = "tcp"
  132. addr = "172.18.33.61:11219"
  133. idle = 5
  134. active = 10
  135. dialTimeout = "1s"
  136. readTimeout = "1s"
  137. writeTimeout = "1s"
  138. idleTimeout = "10s"
  139. expire = "24h"
  140. pointexpire = "168h"
  141. [ecode]
  142. domain = "172.16.33.248:6401"
  143. all = "1h"
  144. diff = "10m"
  145. [ecode.clientconfig]
  146. key = "test"
  147. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  148. dial = "2s"
  149. timeout = "2s"
  150. keepAlive = "10s"
  151. [ecode.clientconfig.breaker]
  152. window ="3s"
  153. sleep ="100ms"
  154. bucket = 10
  155. ratio = 0.5
  156. request = 100
  157. [ecode.app]
  158. key = "test"
  159. secret = "e6c4c252dc7e3d8a90805eecd7c73396"