search-admin-test.toml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. version = "0.0.1"
  2. user = "nobody"
  3. pid = "/tmp/search-admin.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:8086"
  6. env = "dev"
  7. [log]
  8. dir = "/data/log/search-admin/"
  9. [auth]
  10. managerHost = "http://manager.bilibili.co"
  11. dashboardHost = "http://dashboard-mng.bilibili.co"
  12. dashboardCaller = "manager-go"
  13. [auth.DsHTTPClient]
  14. key = "manager-go"
  15. secret = "949bbb2dd3178252638c2407578bc7ad"
  16. dial = "50ms"
  17. timeout = "500ms"
  18. keepAlive = "60s"
  19. [auth.DsHTTPClient.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [auth.MaHTTPClient]
  26. key = "f6433799dbd88751"
  27. secret = "36f8ddb1806207fe07013ab6a77a3935"
  28. dial = "50ms"
  29. timeout = "500ms"
  30. keepAlive = "60s"
  31. [auth.MaHTTPClient.breaker]
  32. window = "3s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [auth.session]
  38. sessionIDLength = 32
  39. cookieLifeTime = 86400
  40. cookieName = "mng-go"
  41. domain = ".bilibili.co"
  42. [auth.session.Memcache]
  43. name = "go-business/auth"
  44. proto = "unix"
  45. addr = "/tmp/shylf-manager-admin-mc.sock"
  46. active = 10
  47. idle = 10
  48. dialTimeout = "1s"
  49. readTimeout = "1s"
  50. writeTimeout = "1s"
  51. idleTimeout = "80s"
  52. [bm]
  53. addr = "0.0.0.0:7311"
  54. maxListen = 1000
  55. timeout = "1s"
  56. [identify]
  57. whiteAccessKey = ""
  58. whiteMid = 0
  59. csrfOn = true
  60. [identify.app]
  61. key = "7c7ac0db1aa05587"
  62. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  63. [identify.host]
  64. auth = "http://passport.bilibili.com"
  65. secret = "http://open.bilibili.com"
  66. [identify.HTTPClient]
  67. key = "7c7ac0db1aa05587"
  68. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  69. dial = "1s"
  70. timeout = "1s"
  71. keepAlive = "60s"
  72. timer = 1000
  73. [identify.HTTPClient.breaker]
  74. window ="10s"
  75. sleep ="10ms"
  76. bucket = 10
  77. ratio = 0.5
  78. request = 100
  79. [pagination]
  80. pageNum = 1
  81. pageSize = 30
  82. maxPageNum = 5000
  83. maxPageSize = 1000
  84. [db]
  85. [db.search]
  86. addr = "172.16.33.205:3308"
  87. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_search?timeout=10s&readTimeout=10s&writeTimeout=10s&parseTime=true&loc=Local&charset=utf8"
  88. active = 5
  89. idle = 5
  90. idleTimeout = "4h"
  91. queryTimeout = "10s"
  92. execTimeout = "10s"
  93. tranTimeout = "10s"
  94. [db.search.breaker]
  95. window = "10s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [es]
  101. [es.pcie_dm_in]
  102. addr = ["http://172.22.33.127:9201"]
  103. cluster = "pcie_dm_in"
  104. owner = "guanhuaxin,daizhichen,libingqi,zhapuyu"
  105. [es.pcie_dm_out]
  106. addr = ["http://172.22.33.127:9201"]
  107. owner = "guanhuaxin,daizhichen,libingqi"
  108. [es.log]
  109. addr = ["http://172.22.33.120:9201"]
  110. owner = "guanhuaxin,daizhichen,libingqi"
  111. [es.log_live]
  112. addr = ["http://172.22.33.120:9201"]
  113. [es.pcie_pub_out01]
  114. addr = ["http://172.22.33.120:9201"]
  115. [es.pcie_fav]
  116. addr = ["http://172.22.33.120:9201"]
  117. [es.ssd_reply_in]
  118. addr = ["http://172.22.33.120:9201"]
  119. [es.ssd_reply_out]
  120. addr = ["http://172.22.33.120:9201"]
  121. [es.ssd_archive]
  122. addr = ["http://172.22.33.120:9201"]
  123. [es.ssd_pub_in01]
  124. addr = ["http://172.22.33.120:9201"]
  125. [es.ssd_pub_in02]
  126. addr = ["http://172.18.33.71:9200"]
  127. [es.open]
  128. addr = ["http://172.18.33.71:9200"]
  129. [es.ops_log]
  130. addr = ["http://ops-log.bilibili.co/elasticsearch/"]
  131. [es.creative_reply]
  132. addr = ["http://172.18.33.71:9200"]
  133. [redis]
  134. name = "search-api"
  135. proto = "tcp"
  136. addr = "172.18.33.71:6379"
  137. active = 10
  138. idle = 5
  139. dialTimeout = "1s"
  140. readTimeout = "1s"
  141. writeTimeout = "1s"
  142. idleTimeout = "10s"
  143. expire = "24h"
  144. [sms]
  145. phone = "17621966518"
  146. token = "f5a658b2-5926-4b71-96c3-7d3777b7d256"
  147. interval = 300
  148. [prop]
  149. manager = "http://uat-manager.bilibili.co/"
  150. api = "http://api.bilibili.co/"
  151. [httpClient]
  152. key = "ad4bb9b8f5d9d4a7"
  153. secret = "6912080d78d58be7cb94f57d50d438f6"
  154. dial = "1s"
  155. timeout = "10s"
  156. keepAlive = "60s"
  157. timer = 1000
  158. [httpClient.breaker]
  159. window = "10s"
  160. sleep = "100ms"
  161. bucket = 10
  162. ratio = 0.5
  163. request = 100