point-job.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/point.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6420"
  7. [log]
  8. dir = "/data/log/point"
  9. [bm]
  10. [bm.inner]
  11. addr = "0.0.0.0:9002"
  12. maxListen = 10
  13. timeout = "1s"
  14. [bm.local]
  15. addr = "0.0.0.0:9003"
  16. maxListen = 10
  17. timeout = "1s"
  18. [mysql]
  19. addr = "127.0.0.1:3306"
  20. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_point?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  21. active = 20
  22. idle = 10
  23. idleTimeout ="4h"
  24. queryTimeout = "100ms"
  25. execTimeout = "100ms"
  26. tranTimeout = "200ms"
  27. [mysql.breaker]
  28. window = "3s"
  29. sleep = "100ms"
  30. bucket = 10
  31. ratio = 0.5
  32. request = 100
  33. [memcache]
  34. name = "point"
  35. proto = "tcp"
  36. addr = ""
  37. idle = 5
  38. active = 10
  39. dialTimeout = "1s"
  40. readTimeout = "1s"
  41. writeTimeout = "1s"
  42. idleTimeout = "10s"
  43. expire = "24h"
  44. [dataBus]
  45. [dataBus.OldVipBinlog]
  46. key = "4ba46ba31f9a44ef"
  47. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  48. group = "VipBinlog-MainAccount-Point-S"
  49. topic = "VipBinlog-T"
  50. action = "sub"
  51. offset = "old"
  52. buffer = 1024
  53. name = "vip-job"
  54. proto = "tcp"
  55. addr = "172.16.33.158:6205"
  56. idle = 1
  57. active = 1
  58. dialTimeout = "1s"
  59. readTimeout = "60s"
  60. writeTimeout = "1s"
  61. idleTimeout = "10s"
  62. [dataBus.PointBinlog]
  63. key = "4ba46ba31f9a44ef"
  64. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  65. group = "PointBinlog-MainAccount-S"
  66. topic = "PointBinlog-T"
  67. action = "sub"
  68. offset = "old"
  69. buffer = 1024
  70. name = "vip-job"
  71. proto = "tcp"
  72. addr = "172.16.33.158:6205"
  73. idle = 1
  74. active = 1
  75. dialTimeout = "1s"
  76. readTimeout = "60s"
  77. writeTimeout = "1s"
  78. idleTimeout = "10s"
  79. [dataBus.PointUpdate]
  80. key = "4ba46ba31f9a44ef"
  81. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  82. group = "PointUpdate-MainAccount-S"
  83. topic = "PointUpdate-T"
  84. action = "sub"
  85. offset = "old"
  86. buffer = 1024
  87. name = "vip-job"
  88. proto = "tcp"
  89. addr = "172.16.33.158:6205"
  90. idle = 1
  91. active = 1
  92. dialTimeout = "1s"
  93. readTimeout = "60s"
  94. writeTimeout = "1s"
  95. idleTimeout = "10s"
  96. [httpClient]
  97. key = "5245acedbb88a3e2"
  98. secret = "66998d7f276f47b0fd31dc026c9f22cf"
  99. dial = "500ms"
  100. timeout = "1s"
  101. keepAlive = "60s"
  102. timer = 10
  103. [httpClient.breaker]
  104. window = "3s"
  105. sleep = "100ms"
  106. bucket = 10
  107. ratio = 0.5
  108. request = 100
  109. [properties]
  110. notifyCacheDelURL = ["http://account.bilibili.co/api/communicate/purge_cache"]