rank-service.toml 2.5 KB

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