secure-service-test.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. [bm]
  2. addr = "0.0.0.0:6812"
  3. maxListen = 1000
  4. timeout = "1s"
  5. [httpClient]
  6. key = "3c4e41f926e51656"
  7. secret ="26a2095b60c24154521d24ae62b885bb"
  8. dial = "500ms"
  9. timeout = "2s"
  10. keepAlive = "60s"
  11. timer = 10
  12. [httpClient.breaker]
  13. window ="10s"
  14. sleep ="10ms"
  15. bucket = 10
  16. ratio = 0.5
  17. request = 100
  18. [databus]
  19. key = "0QNB0ZgFozbKUCQhbTq8"
  20. secret = "0QNB0ZgFozbKUCQhbTq9"
  21. group = "PassportBinlog-Login-S"
  22. topic = "Passport-T"
  23. action = "sub"
  24. offset = "new"
  25. buffer = 2048
  26. name = "secure-service/databus"
  27. proto = "tcp"
  28. addr = "172.18.33.50:6205"
  29. idle = 1
  30. active = 1
  31. dialTimeout = "1s"
  32. readTimeout = "60s"
  33. writeTimeout = "1s"
  34. idleTimeout = "10s"
  35. [mysql]
  36. [mysql.secure]
  37. addr = "172.22.34.101:3309"
  38. dsn = "secure:cvETlGWr360LVzQPeJwydStxmA78Z4hX@tcp(172.22.34.101:3309)/bilibili_secure?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  39. active = 3
  40. idle = 1
  41. idleTimeout ="4h"
  42. queryTimeout = "100ms"
  43. execTimeout = "100ms"
  44. tranTimeout = "200ms"
  45. [mysql.secure.breaker]
  46. window = "3s"
  47. sleep = "100ms"
  48. bucket = 10
  49. ratio = 0.5
  50. request = 100
  51. [mysql.ddl]
  52. addr = "172.22.34.101:3309"
  53. dsn = "secure_ddl:c1GoSPd8O2KgBvkeRTbWMufNyzHiw6aV@tcp(172.22.34.101:3309)/bilibili_secure?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  54. active = 3
  55. idle = 1
  56. idleTimeout ="4h"
  57. queryTimeout = "100ms"
  58. execTimeout = "100ms"
  59. tranTimeout = "200ms"
  60. [mysql.ddl.breaker]
  61. window = "3s"
  62. sleep = "100ms"
  63. bucket = 10
  64. ratio = 0.5
  65. request = 100
  66. [rpcServer]
  67. proto = "tcp"
  68. addr = "0.0.0.0:6819"
  69. weight = 10
  70. [locationrpc]
  71. timeout = "30s"
  72. [redis]
  73. name = "secure-service/secure"
  74. proto = "tcp"
  75. addr = "172.18.33.61:6839"
  76. idle = 2
  77. active = 20
  78. dialTimeout = "100ms"
  79. readTimeout = "350ms"
  80. writeTimeout = "350ms"
  81. idleTimeout = "80s"
  82. expire = "1h"
  83. doubleCheck="720h"
  84. [memcache]
  85. name = "secure-service"
  86. proto = "tcp"
  87. addr = "172.18.33.61:11212"
  88. idle = 1
  89. active = 10
  90. dialTimeout = "100ms"
  91. readTimeout = "200ms"
  92. writeTimeout = "200ms"
  93. idleTimeout = "80s"
  94. expire = "9h"
  95. [hbase]
  96. master = ""
  97. meta = ""
  98. dialTimeout = "1s"
  99. readTimeout = "10s"
  100. readsTimeout = "10s"
  101. writeTimeout = "10s"
  102. writesTimeout = "10s"
  103. [hbase.zookeeper]
  104. root = ""
  105. addrs = ["172.18.33.75:2181" ]
  106. timeout = "30s"
  107. [Expect]
  108. Top = 3
  109. Count =2
  110. closeCount = 1000
  111. Rand = 1