dm-job-test.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # This is a TOML document. Boom.
  2. version = "3.0.5"
  3. user = "nobody"
  4. pid = "/tmp/dm-job.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6215"
  7. checkFile = "/data/www/dm-job.html"
  8. [xlog]
  9. dir = "/data/log/dm-job/"
  10. [tracer]
  11. proto = "udp"
  12. addr = "172.16.33.46:5140"
  13. family = "dm-job"
  14. [httpServer]
  15. addr = "0.0.0.0:6216"
  16. maxListen = 100
  17. timeout = "1s"
  18. [db]
  19. [db.dmReader]
  20. addr = "172.16.33.205:3310"
  21. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  22. active = 10
  23. idle = 5
  24. idleTimeout ="4h"
  25. queryTimeout = "3s"
  26. execTimeout = "3s"
  27. tranTimeout = "3s"
  28. [db.dmReader.breaker]
  29. window = "3s"
  30. sleep = "100ms"
  31. bucket = 10
  32. ratio = 0.5
  33. request = 100
  34. [db.dmWriter]
  35. addr = "172.16.33.205:3310"
  36. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  37. active = 10
  38. idle = 5
  39. idleTimeout ="4h"
  40. queryTimeout = "3s"
  41. execTimeout = "3s"
  42. tranTimeout = "3s"
  43. [db.dmWriter.breaker]
  44. window = "3s"
  45. sleep = "100ms"
  46. bucket = 10
  47. ratio = 0.5
  48. request = 100
  49. [redis]
  50. name = "dm-job"
  51. proto = "tcp"
  52. addr = "172.16.33.54:6379"
  53. active = 10
  54. idle = 5
  55. dialTimeout = "1s"
  56. readTimeout = "1s"
  57. writeTimeout = "1s"
  58. idleTimeout = "10s"
  59. expire = "24h"
  60. [memcache]
  61. name = "dm-job"
  62. proto = "tcp"
  63. addr = "172.16.33.54:11211"
  64. idle = 5
  65. active = 10
  66. dialTimeout = "1s"
  67. readTimeout = "1s"
  68. writeTimeout = "1s"
  69. idleTimeout = "80s"
  70. expire = "24h"
  71. [databus]
  72. [databus.jobSub]
  73. key = "0Pub71KvEMKXu63qtztq"
  74. secret = "0Pub71KvEMKXu63qtztr"
  75. group = "DMJob-UGC-S"
  76. topic = "DMJob-T"
  77. action = "sub"
  78. name = "dm-job"
  79. proto = "tcp"
  80. addr = "172.16.33.158:6205"
  81. idle = 1
  82. active = 1
  83. dialTimeout = "1s"
  84. readTimeout = "40s"
  85. writeTimeout = "1s"
  86. idleTimeout = "60s"
  87. [databus.dmMetaCsmr]
  88. key = "0Pub71KvEMKXu63qtztq"
  89. secret = "0Pub71KvEMKXu63qtztr"
  90. group = "DMMeta-DMQueue-S"
  91. topic = "DMMeta-T"
  92. action = "sub"
  93. name = "dm-job"
  94. proto = "tcp"
  95. addr = "172.16.33.158:6205"
  96. idle = 1
  97. active = 1
  98. dialTimeout = "1s"
  99. readTimeout = "40s"
  100. writeTimeout = "1s"
  101. idleTimeout = "60s"
  102. [archiveRPC]
  103. timeout = "150ms"
  104. [realname]
  105. switchOn = false
  106. whitelist = [10109417,1221]
  107. [realname.threshold]
  108. "1,2" = 1010
  109. [job]
  110. flushExpire = "10s"
  111. [bfs]
  112. host = "http://uat-bfs.bilibili.co"
  113. timeout = "5s"
  114. bucket = "test"
  115. key = "221bce6492eba70f"
  116. secret = "6eb80603e85842542f9736eb13b7e3"