credit-timer-job-test.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. [bm]
  17. addr = "0.0.0.0:6331"
  18. timeout = "1s"
  19. [identify]
  20. [identify.app]
  21. key = "3c4e41f926e51656"
  22. secret = "26a2095b60c24154521d24ae62b885bb"
  23. [identify.memcache]
  24. name = "go-business/identify"
  25. proto = "tcp"
  26. addr = "172.16.33.54:11211"
  27. active = 5
  28. idle = 10
  29. dialTimeout = "1s"
  30. readTimeout = "1s"
  31. writeTimeout = "1s"
  32. idleTimeout = "80s"
  33. [identify.host]
  34. auth = "http://passport.bilibili.com"
  35. secret = "http://open.bilibili.com"
  36. [identify.authHTTPClient]
  37. dial = "1s"
  38. timeout = "1s"
  39. keepAlive = "60s"
  40. timer = 1000
  41. [identify.authHTTPClient.breaker]
  42. window = "3s"
  43. sleep = "100ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [identify.secretHTTPClient]
  48. dial = "1s"
  49. timeout = "1s"
  50. keepAlive = "60s"
  51. timer = 1000
  52. [identify.secretHTTPClient.breaker]
  53. window = "3s"
  54. sleep = "100ms"
  55. bucket = 10
  56. ratio = 0.5
  57. request = 100
  58. [mysql]
  59. addr = "172.16.33.205:3306"
  60. dsn = "blocked:mUdFycLKSbvPgdE28lCveqN77SqsGOmy@tcp(172.16.33.205:3306)/blocked?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  61. active = 5
  62. idle = 2
  63. idleTimeout ="4h"
  64. queryTimeout = "1s"
  65. execTimeout = "1s"
  66. tranTimeout = "1s"
  67. [mysql.breaker]
  68. window = "3s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [memcache]
  74. name = "credit"
  75. proto = "tcp"
  76. addr = "172.16.33.54:11211"
  77. idle = 5
  78. active = 10
  79. dialTimeout = "1s"
  80. readTimeout = "1s"
  81. writeTimeout = "1s"
  82. idleTimeout = "10s"
  83. expire = "24h"
  84. [redis]
  85. name = "credit"
  86. proto = "tcp"
  87. addr = "172.16.33.54:6379"
  88. idle = 100
  89. active = 100
  90. dialTimeout = "1s"
  91. readTimeout = "1s"
  92. writeTimeout = "1s"
  93. idleTimeout = "10s"
  94. expire = "720h"
  95. [judge]
  96. votetimer="60s"
  97. caseTimer="60s"
  98. juryTimer="60s"
  99. confTimer="120s"
  100. reservedTime="600s"