coupon-job.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/coupon.pid"
  5. dir = "./"
  6. [log]
  7. # dir = "/data/log/coupon"
  8. stdout = true
  9. [tracer]
  10. proto = "udp"
  11. addr = "172.16.33.46:5140"
  12. tag = "mypro"
  13. [bm]
  14. addr = "0.0.0.0:9001"
  15. maxListen = 10
  16. timeout = "1s"
  17. [mysql]
  18. addr = "127.0.0.1:3306"
  19. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_coupon?timeout=3s&readTimeout=3s&writeTimeout=3s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 20
  21. idle = 10
  22. idleTimeout ="4h"
  23. queryTimeout = "1s"
  24. execTimeout = "1s"
  25. tranTimeout = "2s"
  26. [mysql.breaker]
  27. window = "3s"
  28. sleep = "100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [memcache]
  33. name = "coupon"
  34. proto = "tcp"
  35. addr = ""
  36. idle = 5
  37. active = 10
  38. dialTimeout = "1s"
  39. readTimeout = "1s"
  40. writeTimeout = "1s"
  41. idleTimeout = "10s"
  42. expire = "24h"
  43. [properties]
  44. maxRetries = 30
  45. bangumiNotifyURL = "http://bangumi.bilibili.com/pay/inner/notify_ticket"
  46. checkInUseCouponCron = "0 * */1 * * ?"
  47. CheckInUseCouponCartoonCron = "0 * */1 * * ?"
  48. notifyTimeInterval = "5s"
  49. [httpClient]
  50. dial = "1s"
  51. timeout = "3s"
  52. keepAlive = "60s"
  53. timer = 1000
  54. key = "zxnh4k92dwe61t27"
  55. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  56. [httpClient.breaker]
  57. window = "3s"
  58. sleep = "500ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. switchoff = false
  63. [dataBus]
  64. [dataBus.couponBinlog]
  65. key = "4ba46ba31f9a44ef"
  66. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  67. group = "CouponBinlog-MainAccount-S"
  68. topic = "CouponBinlog-T"
  69. action = "sub"
  70. offset = "old"
  71. buffer = 1024
  72. name = "vip-job"
  73. proto = "tcp"
  74. addr = "172.16.33.158:6205"
  75. idle = 1
  76. active = 1
  77. dialTimeout = "1s"
  78. readTimeout = "60s"
  79. writeTimeout = "1s"
  80. idleTimeout = "10s"
  81. [newYearConf]
  82. # 活动id
  83. actID = 1