test.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # dev config.
  2. [bm]
  3. addr = "0.0.0.0:7861"
  4. timeout = "1s"
  5. [rank]
  6. switchAll = false
  7. switchIncr = false
  8. ticker = "10s"
  9. rowsLimit = 1000
  10. batchSleep = "10ms"
  11. batchStep = "24h"
  12. filePath = "/data/backup/rank-service/"
  13. fileName = "rmap_%d.pb"
  14. [log]
  15. dir="/data/log/rank-service"
  16. [mysql]
  17. [mysql.bilibiliArchive]
  18. addr = "172.16.33.205:3308"
  19. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 20
  21. idle = 10
  22. idleTimeout ="4h"
  23. queryTimeout = "500ms"
  24. execTimeout = "500ms"
  25. tranTimeout = "500ms"
  26. [mysql.archiveStat]
  27. addr = "172.16.33.205:3308"
  28. dsn = "test:test@tcp(172.16.33.205:3308)/archive_stat?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  29. active = 20
  30. idle = 10
  31. idleTimeout ="4h"
  32. queryTimeout = "500ms"
  33. execTimeout = "500ms"
  34. tranTimeout = "500ms"
  35. [mysql.bilibiliTV]
  36. addr = "172.16.33.205:3308"
  37. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_tv?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  38. active = 20
  39. idle = 10
  40. idleTimeout ="4h"
  41. queryTimeout = "500ms"
  42. execTimeout = "500ms"
  43. tranTimeout = "500ms"
  44. [databus]
  45. [databus.StatView]
  46. key = "170e302355453683"
  47. secret = "3d0e8db7bed0503949e545a469789279"
  48. group = "Favorite-MainSearch-S"
  49. topic = "StatView-T"
  50. action = "sub"
  51. name = "rank-service/statView-sub"
  52. proto = "tcp"
  53. addr = "172.16.33.158:6205"
  54. idle = 1
  55. active = 1
  56. dialTimeout = "1s"
  57. readTimeout = "60s"
  58. writeTimeout = "1s"
  59. idleTimeout = "10s"
  60. [databus.UgcTvBinlog]
  61. key = "170e302355453683"
  62. secret = "3d0e8db7bed0503949e545a469789279"
  63. group = "Favorite-MainSearch-S"
  64. topic = "UgcTvBinlog-T"
  65. action = "sub"
  66. name = "rank-service/UgcTvBinlog-sub"
  67. proto = "tcp"
  68. addr = "172.16.33.158:6205"
  69. idle = 1
  70. active = 1
  71. dialTimeout = "1s"
  72. readTimeout = "60s"
  73. writeTimeout = "1s"
  74. idleTimeout = "10s"
  75. [databus.Archive]
  76. key = "170e302355453683"
  77. secret = "3d0e8db7bed0503949e545a469789279"
  78. group = "Rank-MainSearch-S"
  79. topic = "Archive-T"
  80. action = "sub"
  81. name = "rank-service/archive-sub"
  82. proto = "tcp"
  83. addr = "172.16.33.158:6205"
  84. idle = 1
  85. active = 1
  86. dialTimeout = "1s"
  87. readTimeout = "60s"
  88. writeTimeout = "1s"
  89. idleTimeout = "10s"