convey-test.toml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/merlin.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6420"
  7. [log]
  8. dir = "/data/merlin/log"
  9. [bm]
  10. [bm.inner]
  11. addr = "0.0.0.0:9001"
  12. maxListen = 10
  13. timeout = "1s"
  14. [bm.local]
  15. addr = "0.0.0.0:9002"
  16. maxListen = 10
  17. timeout = "1s"
  18. [httpClient]
  19. key = "c05dd4e1638a8af0"
  20. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  21. dial = "2s"
  22. timeout = "10s"
  23. keepAlive = "60s"
  24. timer = 1000
  25. [httpClient.breaker]
  26. window = "10s"
  27. sleep = "2000ms"
  28. bucket = 10
  29. ratio = 0.5
  30. request = 100
  31. [identify]
  32. whiteAccessKey = ""
  33. whiteMid = 0
  34. [identify.app]
  35. key = "6a29f8ed87407c11"
  36. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  37. [identify.memcache]
  38. name = "go-business/identify"
  39. proto = "tcp"
  40. addr = "172.16.33.54:11211"
  41. active = 5
  42. idle = 1
  43. dialTimeout = "2s"
  44. readTimeout = "2s"
  45. writeTimeout = "2s"
  46. idleTimeout = "80s"
  47. [identify.host]
  48. auth = "http://passport.bilibili.com"
  49. secret = "http://open.bilibili.com"
  50. [identify.httpClient]
  51. key = "f022126a8a365e20"
  52. secret = "b7b86838145d634b487e67b811b8fab2"
  53. dial = "3000ms"
  54. timeout = "2000ms"
  55. keepAlive = "60s"
  56. [identify.httpClient.breaker]
  57. window = "10s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [identify.httpClient.url]
  63. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  64. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  65. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  66. [ecode]
  67. domain = "uat-api.bilibili.co"
  68. all = "1h"
  69. diff = "5m"
  70. [ecode.clientconfig]
  71. key = "c1a1cb2d89c33794"
  72. secret = "dda47eeca111e03e6845017505baea13"
  73. dial = "2000ms"
  74. timeout = "2s"
  75. keepAlive = "10s"
  76. timer = 128
  77. [ecode.clientconfig.breaker]
  78. window ="3s"
  79. sleep ="100ms"
  80. bucket = 10
  81. ratio = 0.5
  82. request = 100
  83. [managerAuth]
  84. servicetreeHost = "http://easyst.bilibili.co"
  85. dashboardHost = "http://dashboard-mng.bilibili.co"
  86. dashboardCaller = "merlin"
  87. [managerAuth.dsHTTPClient]
  88. key = "merlin"
  89. secret = "4fb521f66dfd5efcf6e77d078ed2eb0a"
  90. dial = "2s"
  91. timeout = "3s"
  92. keepAlive = "60s"
  93. timer = 1000
  94. [managerAuth.dsHTTPClient.breaker]
  95. window ="3s"
  96. sleep ="200ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [managerAuth.stHTTPClient]
  101. key = "merlin"
  102. secret = "4fb521f66dfd5efcf6e77d078ed2eb0a"
  103. dial = "2s"
  104. timeout = "3s"
  105. keepAlive = "60s"
  106. timer = 1000
  107. [managerAuth.stHTTPClient.breaker]
  108. window ="3s"
  109. sleep ="100ms"
  110. bucket = 10
  111. ratio = 0.5
  112. request = 100
  113. [paas]
  114. host = "http://172.16.38.89"
  115. token = "ngriEorfjzbdyyQ2cdqMYcNxovazPD6Cbte"
  116. machineTimeout = "CURRENT_TIMESTAMP - INTERVAL 20 MINUTE"
  117. [serviceTree]
  118. host = "http://easyst.bilibili.co"
  119. key = "merlin"
  120. secret = "rhRp[Lfnfrp9Jypr7aaJMGn8NC.[E+Gvb9&nRazs6Mm{fEW98.z9yzV*phu)U97#"
  121. [mail]
  122. host = "smtp.exmail.qq.com"
  123. port = 465
  124. username = "merlin@bilibili.com"
  125. password = ""
  126. [Scheduler]
  127. #每天晚上23点查找第二天将要过期机器放入任务表
  128. GetExpiredMachinesTime = "0 0 23 * * ?"
  129. #每天早上10点查找一周后要过期的机器,并发送邮件
  130. #SendTaskMailMachinesWillExpiredTime = "*/15 * * * * ?"
  131. SendTaskMailMachinesWillExpiredTime = "0 0 10 * * ?"
  132. #每隔五分钟删除机器
  133. DeleteExpiredMachinesInTask = "0 */5 * * * ?"
  134. #每隔二十分钟检测机器状态
  135. CheckMachinesStatusInTask = "0 */20 * * * ?"
  136. [orm]
  137. dsn = "root:123456@tcp(172.18.33.130:3306)/merlin?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  138. active = 5
  139. idle = 5
  140. idleTimeout = "4h"
  141. [memcache]
  142. name = "merlin"
  143. proto = "tcp"
  144. addr = "172.16.33.54:11211"
  145. idle = 5
  146. active = 10
  147. dialTimeout = "1s"
  148. readTimeout = "1s"
  149. writeTimeout = "1s"
  150. idleTimeout = "10s"
  151. expire = "12h"