passport-job.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. [xlog]
  4. dir = "/tmp/"
  5. [bm]
  6. addr = "0.0.0.0:6651"
  7. timeout = "1s"
  8. [uri]
  9. setToken = "http://passport.bilibili.co/intranet/auth/setToken"
  10. delCache = "http://passport.bilibili.co/intranet/acc/job/delCache"
  11. [game]
  12. # NOTE: the conf item appIDs represents the game app id list,
  13. # the app id 876 will always be the first item of the the final game app id list,
  14. # even if it's not configured in this file or configured in other order.
  15. appIDs = [876,900]
  16. delCacheURI = "http://p.biligame.com/api/notify/purge.cache"
  17. [game.client]
  18. key = "ebbec09cd271049e"
  19. secret = "test"
  20. dial = "500ms"
  21. timeout = "1s"
  22. keepAlive = "60s"
  23. timer = 10
  24. [game.client.breaker]
  25. window = "3s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [rpc]
  31. [rpc.identifyGame]
  32. pullInterval = "10s"
  33. [rpc.identifyGame.client]
  34. proto = "tcp"
  35. timeout = "30s"
  36. timer = 1000
  37. [rpc.identifyGame.client.breaker]
  38. window = "3s"
  39. sleep = "100ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [rpc.identifyGame.zookeeper]
  44. root = "/microservice/identify-game-service/"
  45. addrs = ["172.18.33.172:2181"]
  46. timeout = "30s"
  47. [db]
  48. [db.log]
  49. addr = "172.16.33.205:3306"
  50. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  51. active = 5
  52. idle = 2
  53. queryTimeout = "1s"
  54. execTimeout = "2s"
  55. tranTimeout = "2s"
  56. [db.log.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [db.aso]
  63. addr = "172.16.33.205:3306"
  64. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  65. active = 5
  66. idle = 2
  67. queryTimeout = "1s"
  68. execTimeout = "2s"
  69. tranTimeout = "2s"
  70. [db.aso.breaker]
  71. window = "3s"
  72. sleep = "100ms"
  73. bucket = 10
  74. ratio = 0.5
  75. request = 100
  76. [httpClient]
  77. key = "ebbec09cd271049e"
  78. secret = "test"
  79. dial = "500ms"
  80. timeout = "1s"
  81. keepAlive = "60s"
  82. timer = 10
  83. [httpClient.breaker]
  84. window = "3s"
  85. sleep = "100ms"
  86. bucket = 10
  87. ratio = 0.5
  88. request = 100
  89. [group]
  90. [group.asoBinLog]
  91. size = 1024
  92. num = 32
  93. ticker = "5s"
  94. chan = 1024
  95. [group.user]
  96. size = 1024
  97. num = 32
  98. ticker = "5s"
  99. chan = 1024
  100. [group.log]
  101. size = 1024
  102. num = 32
  103. ticker = "5s"
  104. chan = 1024
  105. [group.contactBindLog]
  106. size = 2
  107. num = 2
  108. ticker = "5s"
  109. chan = 2
  110. [group.pwdLog]
  111. size = 2
  112. num = 2
  113. ticker = "5s"
  114. chan = 2
  115. [databus]
  116. [databus.asoBinLog]
  117. key = "0QHEzXlXE9Ijewj8V4zu"
  118. secret = "0QHEzXlXE9Ijewj8V4zv"
  119. group = "PassportBinlog-UGC-S"
  120. topic = "Passport-T"
  121. action = "sub"
  122. offset = "old"
  123. buffer = 2048
  124. name = "passport-job/databus"
  125. proto = "tcp"
  126. addr = "172.16.33.158:6205"
  127. idle = 1
  128. active = 1
  129. dialTimeout = "1s"
  130. readTimeout = "60s"
  131. writeTimeout = "1s"
  132. idleTimeout = "10s"
  133. [databus.user]
  134. key = "0QHEzXlXE9Ijewj8V4zu"
  135. secret = "0QHEzXlXE9Ijewj8V4zv"
  136. group = "PassportUserInfo-SetUserInfo-S"
  137. topic = "PassportUserInfo-T"
  138. action = "sub"
  139. offset = "old"
  140. buffer = 2048
  141. name = "passport-job/databus"
  142. proto = "tcp"
  143. addr = "172.16.33.158:6205"
  144. idle = 1
  145. active = 1
  146. dialTimeout = "1s"
  147. readTimeout = "60s"
  148. writeTimeout = "1s"
  149. idleTimeout = "10s"
  150. [databus.log]
  151. key = "0QEO9F8JuuIxZzNDvklH"
  152. secret = "0QEO9F8JuuIxZzNDvklI"
  153. group = "PassportLog-Job-S"
  154. topic = "PassportLog-T"
  155. action = "sub"
  156. offset = "old"
  157. buffer = 2048
  158. name = "passport-job/databus"
  159. proto = "tcp"
  160. addr = "172.16.33.158:6205"
  161. idle = 1
  162. active = 1
  163. dialTimeout = "1s"
  164. readTimeout = "60s"
  165. writeTimeout = "1s"
  166. idleTimeout = "10s"
  167. [databus.contactBindLog]
  168. key = "dbe67e6a4c36f877"
  169. secret = "8c775ea242caa367ba5c876c04576571"
  170. group = "Test1-MainCommonArch-S"
  171. topic = "test1"
  172. action = "sub"
  173. offset = "old"
  174. buffer = 2048
  175. name = "databus"
  176. proto = "tcp"
  177. addr = "172.18.33.50:6205"
  178. idle = 1
  179. active = 1
  180. dialTimeout = "1s"
  181. readTimeout = "60s"
  182. writeTimeout = "1s"
  183. idleTimeout = "10s"
  184. [databus.userLog]
  185. key = "2511663d546f1413"
  186. secret = "cde3b480836cc76df3d635470f991caa"
  187. group = "LogUserAction-MainSearch-P"
  188. topic = "LogUserAction-T"
  189. action = "pub"
  190. buffer = 10240
  191. name = "log-user-action/log-sub"
  192. proto = "tcp"
  193. addr = "172.18.33.50:6205"
  194. idle = 1
  195. active = 1
  196. dialTimeout = "1s"
  197. readTimeout = "60s"
  198. writeTimeout = "1s"
  199. idleTimeout = "10s"
  200. [hbase]
  201. [hbase.loginLog]
  202. master = ""
  203. meta = ""
  204. testRowKey = "passport-job-ping"
  205. dialTimeout = "1s"
  206. readTimeout = "10s"
  207. readsTimeout = "10s"
  208. writeTimeout = "10s"
  209. writesTimeout = "10s"
  210. [hbase.loginLog.zookeeper]
  211. root = ""
  212. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  213. #addrs = ["127.0.0.1:12181"]
  214. timeout = "30s"
  215. [hbase.pwdLog]
  216. master = ""
  217. meta = ""
  218. testRowKey = "passport-job-ping"
  219. dialTimeout = "1s"
  220. readTimeout = "10s"
  221. readsTimeout = "10s"
  222. writeTimeout = "10s"
  223. writesTimeout = "10s"
  224. [hbase.pwdLog.zookeeper]
  225. root = ""
  226. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  227. timeout = "30s"
  228. [encode]
  229. salt = "12345678"
  230. aesKey = "0123456789abcdef"