open-abtest.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # This is a TOML document. Boom.
  2. [log]
  3. dir = "/data/log/abtest"
  4. [db]
  5. [db.ab]
  6. addr = "172.16.33.203:3306"
  7. dsn = "root:123456@tcp(172.16.33.203:3306)/tickets?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  8. active = 5
  9. idle = 5
  10. queryTimeout = "1s"
  11. execTimeout = "1s"
  12. tranTimeout = "2s"
  13. [db.ab.breaker]
  14. window = "3s"
  15. sleep = "100ms"
  16. bucket = 10
  17. ratio = 0.5
  18. request = 100
  19. [bm]
  20. [bm.inner]
  21. addr = "0.0.0.0:8801"
  22. timeout = "2s"
  23. [bm.outer]
  24. addr = "0.0.0.0:8802"
  25. timeout = "2s"
  26. [redis]
  27. name = "abtest-service"
  28. proto = "tcp"
  29. addr = "172.16.33.203:6379"
  30. idle = 100
  31. active = 100
  32. dialTimeout = "1s"
  33. readTimeout = "1s"
  34. writeTimeout = "1s"
  35. idleTimeout = "10s"
  36. expire = "24h"
  37. verifyCdTimes = "2h"
  38. [identify]
  39. whiteAccessKey = ""
  40. whiteMid = 0
  41. csrfOn = false
  42. [identify.app]
  43. key = "7c7ac0db1aa05587"
  44. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  45. [identify.host]
  46. auth = "http://passport.bilibili.co"
  47. secret = "http://open.bilibili.co"
  48. [identify.httpClient]
  49. key = "7c7ac0db1aa05587"
  50. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  51. dial = "30ms"
  52. timeout = "100ms"
  53. keepAlive = "60s"
  54. [identify.httpClient.breaker]
  55. window = "10s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [identify.httpClient.url]
  61. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  62. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  63. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  64. [httpClient]
  65. [httpClient.read]
  66. key = "7c7ac0db1aa05587"
  67. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  68. dial = "1s"
  69. timeout = "4s"
  70. keepAlive = "60s"
  71. timer = 1000
  72. [httpClient.read.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100
  78. [httpClient.write]
  79. key = "7c7ac0db1aa05587"
  80. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  81. dial = "1s"
  82. timeout = "3s"
  83. keepAlive = "60s"
  84. timer = 1000
  85. [httpClient.write.breaker]
  86. window = "3s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100