up-rating-job.toml 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [log]
  2. dir = "/data/log/up-rating-job/"
  3. [mysql]
  4. [mysql.rating]
  5. addr = "172.16.33.205:3308"
  6. dsn = "gaopeng:V8ktIf7HzvpPSsZeNy5ClWw1RYFAmUDJ@tcp(172.16.33.205:3308)/bilibili_up_rating?timeout=10s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  7. active = 30
  8. idle = 2
  9. idleTimeout = "4h"
  10. queryTimeout = "10s"
  11. execTimeout = "100s"
  12. tranTimeout = "100s"
  13. [mysql.rating.breaker]
  14. window = "3s"
  15. sleep = "100ms"
  16. bucket = 10
  17. ratio = 0.5
  18. request = 100
  19. [app]
  20. key = "a4bb50e6f2bc2e0f"
  21. secret = "3507b8667a3d0b6c952013db2b635f3a"
  22. [bm]
  23. addr = "0.0.0.0:8414"
  24. maxListen = 1000
  25. timeout = "3600s"
  26. [httpClient]
  27. key = "c1a1cb2d89c33794"
  28. secret = "dda47eeca111e03e6845017505baea13"
  29. dial = "2s"
  30. timeout = "3s"
  31. keepAlive = "60s"
  32. timer = 10
  33. [httpClient.breaker]
  34. window = "10s"
  35. sleep = "100ms"
  36. bucket = 10
  37. ratio = 0.5
  38. request = 100