merlin-test.toml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. version = "2.0.0"
  2. user = "nobody"
  3. pid = "/tmp/merlin.pid"
  4. dir = "./"
  5. [bm]
  6. addr = "0.0.0.0:9001"
  7. maxListen = 10000
  8. timeout = "1000s"
  9. [httpClient]
  10. key = "c05dd4e1638a8af0"
  11. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  12. dial = "2s"
  13. timeout = "10s"
  14. keepAlive = "60s"
  15. timer = 1000
  16. [httpClient.breaker]
  17. window = "10s"
  18. sleep = "2000ms"
  19. bucket = 10
  20. ratio = 0.5
  21. request = 100
  22. [deviceFarm]
  23. hostList = ["10.23.35.200:3000","10.23.35.201:3000","10.23.35.202:3000","10.23.35.203:3000"]
  24. applyMonthTime = 3
  25. superOwner = ["fengyifeng","yuanmin"]
  26. [identify]
  27. whiteAccessKey = ""
  28. whiteMid = 0
  29. [identify.app]
  30. key = "6a29f8ed87407c11"
  31. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  32. [identify.memcache]
  33. name = "go-business/identify"
  34. proto = "tcp"
  35. addr = "172.16.33.54:11211"
  36. active = 5
  37. idle = 1
  38. dialTimeout = "2s"
  39. readTimeout = "2s"
  40. writeTimeout = "2s"
  41. idleTimeout = "80s"
  42. [identify.host]
  43. auth = "http://passport.bilibili.com"
  44. secret = "http://open.bilibili.com"
  45. [identify.httpClient]
  46. key = "f022126a8a365e20"
  47. secret = "b7b86838145d634b487e67b811b8fab2"
  48. dial = "3000ms"
  49. timeout = "2000ms"
  50. keepAlive = "60s"
  51. [identify.httpClient.breaker]
  52. window = "10s"
  53. sleep = "100ms"
  54. bucket = 10
  55. ratio = 0.5
  56. request = 100
  57. [identify.httpClient.url]
  58. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  59. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  60. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  61. [paas]
  62. host = "http://10.23.26.21:8612"
  63. token = "ngriEorfjzbdyyQ2cdqMYcNxovazPD6Cbte"
  64. machineTimeout = "CURRENT_TIMESTAMP - INTERVAL 20 MINUTE"
  65. machineLimitRatio = 4.0
  66. [serviceTree]
  67. host = "http://easyst.bilibili.co"
  68. key = "merlin"
  69. secret = "rhRp[Lfnfrp9Jypr7aaJMGn8NC.[E+Gvb9&nRazs6Mm{fEW98.z9yzV*phu)U97#"
  70. [biliHub]
  71. host = "https://hub.bilibili.co"
  72. hostName = "hub.bilibili.co"
  73. username = "merlin"
  74. password = ""
  75. merlinPub = "merlinlibrary"
  76. sharePub = "merlinpubliclibrary"
  77. machineTagPri = "merlinprivatelibrary"
  78. supportNetWork = ["fat"]
  79. superOwner = ["fengyifeng1","xuneng"]
  80. [mail]
  81. host = "smtp.exmail.qq.com"
  82. port = 465
  83. username = "merlin@bilibili.com"
  84. password = "Quality1#"
  85. noticeOwner = ["fengyifeng@bilibili.com"]
  86. [Scheduler]
  87. #每天晚上23点查找第二天将要过期机器放入任务表
  88. #GetExpiredMachinesTime = "*/15 * * * * ?"
  89. getExpiredMachinesTime = "0 0 23 * * ?"
  90. #每天早上10点查找一周后要过期的机器,并发送邮件
  91. sendTaskMailMachinesWillExpiredTime = "0 0 10 * * ?"
  92. expiredDate = 7
  93. #每隔五分钟删除机器
  94. deleteExpiredMachinesInTask = "*/20 * * * * ?"
  95. #DeleteExpiredMachinesInTask = "0 */5 * * * ?"
  96. #每隔二十分钟检测机器状态
  97. checkMachinesStatusInTask = "* */50 * * * ?"
  98. #每天10分钟更新device表
  99. updateMobileDeviceInTask = "0 */10 * * * ?"
  100. #每10分钟检查快照状态
  101. updateSnapshotStatusInDoing = "0 */10 * * * ?"
  102. active = false
  103. [orm]
  104. dsn = "root:123456@tcp(172.18.33.130:3306)/uat-merlin?timeout=200ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  105. active = 5
  106. idle = 5
  107. idleTimeout = "4h"
  108. [memcache]
  109. name = "merlin"
  110. proto = "tcp"
  111. addr = "172.22.33.137:11216"
  112. idle = 5
  113. active = 10
  114. dialTimeout = "1s"
  115. readTimeout = "1s"
  116. writeTimeout = "1s"
  117. idleTimeout = "10s"
  118. expire = "12h"
  119. [auth]
  120. managerHost = "http://uat-manager.bilibili.co"
  121. dashboardHost = "http://dashboard-mng.bilibili.co"
  122. dashboardCaller = "merlin"
  123. [auth.DsHTTPClient]
  124. key = "merlin"
  125. secret = "4fb521f66dfd5efcf6e77d078ed2eb0a"
  126. dial = "1s"
  127. timeout = "1s"
  128. keepAlive = "60s"
  129. [auth.DsHTTPClient.breaker]
  130. window = "3s"
  131. sleep = "100ms"
  132. bucket = 10
  133. ratio = 0.5
  134. request = 100
  135. [auth.MaHTTPClient]
  136. key = "f6433799dbd88751"
  137. secret = "36f8ddb1806207fe07013ab6a77a3935"
  138. dial = "1ms"
  139. timeout = "1ms"
  140. keepAlive = "60s"
  141. [auth.MaHTTPClient.breaker]
  142. window = "3s"
  143. sleep = "100ms"
  144. bucket = 10
  145. ratio = 0.5
  146. request = 100
  147. [auth.session]
  148. sessionIDLength = 32
  149. cookieLifeTime = 1
  150. cookieName = "mng-go"
  151. domain = ".bilibili.co"
  152. [auth.session.Memcache]
  153. name = "go-business/auth"
  154. proto = "tcp"
  155. addr = "172.16.33.54:11211"
  156. active = 10
  157. idle = 10
  158. dialTimeout = "1ms"
  159. readTimeout = "1ms"
  160. writeTimeout = "1ms"
  161. idleTimeout = "80s"
  162. [wechat]
  163. wechatHost="http://172.16.63.43:8000"
  164. [wechat.wechatdevicefarm]
  165. chatid="devicefarm"
  166. msgtype="text"
  167. safe=0
  168. senMessage=true