appstatic-job-test.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/appstatic-job.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:7020"
  6. family = "appstatic-job"
  7. [log]
  8. dir = "/data/log/appstatic-job/"
  9. stdout = true
  10. [cfg]
  11. [cfg.diff]
  12. FreDiff = "30s"
  13. folder = "/tmp"
  14. Retry = "5 MINUTE"
  15. [cfg.push]
  16. qps = 1000
  17. operation = 1001
  18. url = "http://api.bilibili.co/x/internal/broadcast/push/all"
  19. timeout = 30
  20. fre = "2s"
  21. Pause = "2s"
  22. [cfg.grpc]
  23. ApiAppID = "app.resource"
  24. Method = "/app.resource.v1.AppResource/ModuleUpdateCache"
  25. [HTTPServer]
  26. addr = "0.0.0.0:7021"
  27. maxListen = 1000
  28. timeout = "1s"
  29. readTimeout = "1s"
  30. writeTimeout = "1s"
  31. [HTTPClient]
  32. dial = "1s"
  33. timeout = "3s"
  34. keepAlive = "60s"
  35. key = "f265dcfa28272742"
  36. secret = "437facc22dc8698b5544669bcc12348d"
  37. [HTTPClient.breaker]
  38. window ="10s"
  39. sleep ="10ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [mysql]
  44. addr = "172.16.33.205"
  45. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=1m&readTimeout=1m&writeTimeout=1m&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  46. active = 10
  47. idle = 5
  48. queryTimeout = "1m"
  49. execTimeout = "1m"
  50. tranTimeout = "1m"
  51. [mysql.breaker]
  52. window = "3s"
  53. sleep = "100ms"
  54. bucket = 10
  55. ratio = 0.5
  56. request = 100
  57. [redis]
  58. name = "appstatic-job"
  59. proto = "tcp"
  60. addr = "172.18.33.61:6895"
  61. active = 10
  62. idle = 5
  63. dialTimeout = "1s"
  64. readTimeout = "1s"
  65. writeTimeout = "1s"
  66. idleTimeout = "10s"
  67. expire = "24h"
  68. [bfs]
  69. key = "fed7d6b5948c614f"
  70. secret = "280e9140721cff3879cd13f59fc28a"
  71. host = "http://uat-bfs.bilibili.co"
  72. timeout = 1000