convey-test.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/credit-timer.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6330"
  7. family = "credit-timer"
  8. address = "172.16.33.54"
  9. env = "qa"
  10. [xlog]
  11. dir = "/data/log/credit-timer/"
  12. [tracer]
  13. proto = "udp"
  14. addr = "172.16.33.46:5140"
  15. tag = "platform/credit-timer"
  16. [identify]
  17. [identify.app]
  18. key = "3c4e41f926e51656"
  19. secret = "26a2095b60c24154521d24ae62b885bb"
  20. [identify.memcache]
  21. name = "go-business/identify"
  22. proto = "tcp"
  23. addr = "172.16.33.54:11211"
  24. active = 5
  25. idle = 10
  26. dialTimeout = "1s"
  27. readTimeout = "1s"
  28. writeTimeout = "1s"
  29. idleTimeout = "80s"
  30. [identify.host]
  31. auth = "http://passport.bilibili.com"
  32. secret = "http://open.bilibili.com"
  33. [identify.authHTTPClient]
  34. dial = "1s"
  35. timeout = "1s"
  36. keepAlive = "60s"
  37. timer = 1000
  38. [identify.authHTTPClient.breaker]
  39. window = "3s"
  40. sleep = "100ms"
  41. bucket = 10
  42. ratio = 0.5
  43. request = 100
  44. [identify.secretHTTPClient]
  45. dial = "1s"
  46. timeout = "1s"
  47. keepAlive = "60s"
  48. timer = 1000
  49. [identify.secretHTTPClient.breaker]
  50. window = "3s"
  51. sleep = "100ms"
  52. bucket = 10
  53. ratio = 0.5
  54. request = 100
  55. [mysql]
  56. addr = "172.16.33.205:3306"
  57. dsn = "blocked:mUdFycLKSbvPgdE28lCveqN77SqsGOmy@tcp(172.16.33.205:3306)/blocked?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  58. active = 5
  59. idle = 2
  60. idleTimeout ="4h"
  61. queryTimeout = "1s"
  62. execTimeout = "1s"
  63. tranTimeout = "1s"
  64. [mysql.breaker]
  65. window = "3s"
  66. sleep = "100ms"
  67. bucket = 10
  68. ratio = 0.5
  69. request = 100
  70. [memcache]
  71. name = "credit"
  72. proto = "tcp"
  73. addr = "172.16.33.54:11211"
  74. idle = 5
  75. active = 10
  76. dialTimeout = "1s"
  77. readTimeout = "1s"
  78. writeTimeout = "1s"
  79. idleTimeout = "10s"
  80. expire = "24h"
  81. [redis]
  82. name = "credit"
  83. proto = "tcp"
  84. addr = "172.16.33.54:6379"
  85. idle = 100
  86. active = 100
  87. dialTimeout = "1s"
  88. readTimeout = "1s"
  89. writeTimeout = "1s"
  90. idleTimeout = "10s"
  91. expire = "720h"
  92. [judge]
  93. votetimer="60s"
  94. caseTimer="60s"
  95. juryTimer="60s"
  96. confTimer="120s"
  97. reservedTime="600s"