push-job-test.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/push-job.pid"
  4. dir = "./"
  5. family = "push-job"
  6. [log]
  7. dir = "/data/log/push-job/"
  8. [HTTPServer]
  9. addr = "0.0.0.0:7021"
  10. maxListen = 1000
  11. timeout = "1s"
  12. readTimeout = "1s"
  13. writeTimeout = "1s"
  14. [HTTPClient]
  15. dial = "50ms"
  16. timeout = "1s"
  17. keepAlive = "60s"
  18. key = "f265dcfa28272742"
  19. secret = "437facc22dc8698b5544669bcc12348d"
  20. [HTTPClient.breaker]
  21. window ="10s"
  22. sleep ="10ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [dpClient]
  27. key = "17d515f7fa6324a19cfc6546d17ddca7"
  28. secret = "eee2d709e54600ce147a4f522dc3c86e"
  29. dial = "2s"
  30. timeout = "30s"
  31. keepAlive = "60s"
  32. [dpClient.breaker]
  33. window = "10s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [memcache]
  39. name = "push"
  40. proto = "tcp"
  41. addr = "172.18.33.60:11228"
  42. idle = 1000
  43. active = 1000
  44. dialTimeout = "10s"
  45. readTimeout = "10s"
  46. writeTimeout = "10s"
  47. idleTimeout = "30s"
  48. [reportSub]
  49. key = "0QEO9F8JuuIxZzNDvklH"
  50. secret="0QEO9F8JuuIxZzNDvklI"
  51. group= "PushReport-Push-S"
  52. topic= "PushReport-T"
  53. action="sub"
  54. name = "push-job/report-sub"
  55. proto = "tcp"
  56. addr = "172.16.33.158:6205"
  57. idle = 100
  58. active = 100
  59. dialTimeout = "1s"
  60. readTimeout = "60s"
  61. writeTimeout = "1s"
  62. idleTimeout = "10s"
  63. [callbackSub]
  64. key = "9765cdac5894f2ba"
  65. secret="1448f5f2cd6029f6af6c5d438cd31edd"
  66. group= "PushCallback-MainWebSvr-S"
  67. topic= "PushCallback-T"
  68. action="sub"
  69. name = "push-callback-sub"
  70. proto = "tcp"
  71. addr = "172.16.33.158:6205"
  72. idle = 100
  73. active = 100
  74. dialTimeout = "1s"
  75. readTimeout = "60s"
  76. writeTimeout = "1s"
  77. idleTimeout = "10s"
  78. [mysql]
  79. addr = "172.16.33.205"
  80. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_push?timeout=1m&readTimeout=1m&writeTimeout=1m&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  81. active = 10
  82. idle = 5
  83. queryTimeout = "1m"
  84. execTimeout = "1m"
  85. tranTimeout = "1m"
  86. [mysql.breaker]
  87. window = "3s"
  88. sleep = "100ms"
  89. bucket = 10
  90. ratio = 0.5
  91. request = 100
  92. [wechat]
  93. token = "GYQeuDWBbAsCNeGz"
  94. secret = "ZKpmgINTkianyMbMixyxcPQjMCSHCDrk"
  95. username = "wangjian"
  96. [job]
  97. reportTicker = "5s"
  98. delInvalidReportInterval = "10000h"
  99. loadTaskInteval = "10ms"
  100. pullResultIntervalHour = 8
  101. delCallbackInterval = 15 # 单位:天
  102. delTaskInterval = 30 # 单位:天
  103. syncReportCacheWeek = 3 # report cache 同步时间,每周三
  104. syncReportCacheHour = 2 # 两点
  105. reportShard = 5
  106. callbackShard = 5
  107. pretreatmentTaskShard = 3
  108. taskGoroutines = 5
  109. limitPerTask = 100000
  110. pushPartSize = 1000
  111. pushPartChanSize = 10
  112. mountDir = "/data/storage/"
  113. pretreatTask = true
  114. dpPollingTime = "30m"