usersuit-job.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. version = "1.0.0"
  2. NotifyURL = "http://account.bilibili.co/api/communicate/purge_cache"
  3. [xlog]
  4. dir = "/data/log/usersuit-job/"
  5. [app]
  6. key = "53e2fa226f5ad348"
  7. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  8. [bm]
  9. addr = "0.0.0.0:7265"
  10. timeout = "1s"
  11. [mysql]
  12. addr = "172.16.33.205:3309"
  13. dsn = "usersuit:cDXL6vncmCQanx4iMgGogu6gYz33NmA1@tcp(172.16.33.205:3309)/usersuit?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 100
  15. idle = 10
  16. queryTimeout = "2s"
  17. execTimeout = "10s"
  18. tranTimeout = "5s"
  19. [mysql.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [pendantRedis]
  26. name = "usersuit-service"
  27. proto = "tcp"
  28. addr = "127.0.0.1:6558"
  29. idle = 100
  30. active = 100
  31. dialTimeout = "1s"
  32. readTimeout = "1s"
  33. writeTimeout = "1s"
  34. idleTimeout = "10s"
  35. [memcache]
  36. name = "usersuit-job"
  37. proto = "tcp"
  38. addr = "172.16.33.54:6379"
  39. idle = 100
  40. active = 100
  41. dialTimeout = "1s"
  42. readTimeout = "1s"
  43. writeTimeout = "1s"
  44. idleTimeout = "10s"
  45. [httpClient]
  46. key = "53e2fa226f5ad348"
  47. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  48. dial = "500ms"
  49. timeout = "1s"
  50. keepAlive = "60s"
  51. timer = 10
  52. [httpClient.breaker]
  53. window = "3s"
  54. sleep = "100ms"
  55. bucket = 10
  56. ratio = 0.5
  57. request = 100
  58. [properties]
  59. upInfoURL = "http//127.0.0.1"
  60. medalCron = "0 0 5 ? * ?"
  61. [databus]
  62. [databus.vipBinLog]
  63. key = "4ba46ba31f9a44ef"
  64. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  65. group = "BiliVIPBinlog-MainAccount-UsersuitJob-S"
  66. topic = "BiliVIPBinlog-T"
  67. action = "sub"
  68. offset = "old"
  69. buffer = 1024
  70. name = "usersuit-job/databus"
  71. proto = "tcp"
  72. addr = "172.18.33.50:6205"
  73. idle = 1
  74. active = 1
  75. dialTimeout = "1s"
  76. readTimeout = "60s"
  77. writeTimeout = "1s"
  78. idleTimeout = "10s"
  79. [databus.accountNotify]
  80. key = "4ba46ba31f9a44ef"
  81. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  82. group = "AccountNotify-MainAccount-P"
  83. topic = "AccountNotify-T"
  84. action = "pub"
  85. offset = "old"
  86. buffer = 128
  87. name = "usersuit-job/databus"
  88. proto = "tcp"
  89. addr = "172.18.33.50:6205"
  90. active = 1
  91. idle = 1
  92. dialTimeout = "1s"
  93. readTimeout = "1s"
  94. writeTimeout = "1s"
  95. idleTimeout = "10s"